Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:10:23+00:00 2026-05-23T13:10:23+00:00

So im building a chrome extension and I have placed an audio flash player

  • 0

So im building a chrome extension and I have placed an audio flash player that plays a radio station. It works while the popup is open but stops after popup closes. Is it possible to keep the audio player streaming after the popup closes? If so can you give me some idea on how to achieve this? Thanks

Edit @Serg
I think I already have it in a background page? My setup is as follows. In my popup.html I have a navigation bar that links to individual html pages. To get to these the links are targeted at an iframe.

snippet from popup.html

 <div class="nav-bar">
            <a href="latest.html" target="frame" style="color:#FFF"><li class="nav">Latest</li></a>
            <a href="podcasts.html" target="frame" style="color:#FFF"><li class="nav">Podcasts</li></a>
            <a href="books.html" target="frame" style="color:#FFF"><li class="nav">Books</li></a>
            <a href="stream.html" target="frame" style="color:#FFF"><li class="nav">Radio Stream</li></a>
</div>

        <iframe src="latest.html" scrolling="auto" width="480" height="330" style="border:0px;" name="frame"></iframe>

snippet from stream.html

<div id="player" style="float:right;width:480px;margin:0;padding:0"></div> 

<script type="text/javascript"> 
var so = new SWFObject('http://www.radiostation.com/embed/minipro.swf','fmp256','480','70','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','false');
so.addParam('wmode','transparent');
//so.addParam('flashvars','playlistsize=40&playlist=bottom&file=http://www.radiostation.com/feed.xml');
so.write('player');
</script>

Can you help me understand what you mean by placing it in a background page? How would I go about doing it?

Edit2 @Serg I made an attempt at putting it into the background page but im not sure how to do it properly and then call it on the stream.html.

Snippet from background.html

function getPlayerStream(){
                var so = new SWFObject('http://www.site.com/embed/minipro.swf','fmp256','480','70','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','false');
so.addParam('wmode','transparent');
//so.addParam('flashvars','playlistsize=40&playlist=bottom&file=http://www.site.com/feed.xml');
so.write('player');
            }

stream.html

<html>
    <head>
<link href="css/style.css" rel="stylesheet"/>
<script type="text/javascript" src="http://www.site.com/embed/swfobject.js"></script> 
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <script type="text/javascript">
             background = chrome.extension.getBackgroundPage();
             background.getPlayerStream();
        </script>
    </head>
    <body>

        <div id="content">


        <div id="player" style="float:right;width:480px;margin:0;padding:0">The live feed player is currently offline.</div> 

        </div>
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:10:24+00:00Added an answer on May 23, 2026 at 1:10 pm

    Embed your player into a background page.

    Background page is a unique page that isn’t visible but always loaded. You can read about it here.

    What you currently have in stream.html needs to be in a background page, if you want it to stay always loaded.

    UPDATE

    Your actual <div id="player"> needs to be in a background page. You won’t be able to actually see the player in an iframe, only programmatically control it through javascript (if that radio player supports such option).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a chrome extension which will only be available for people within
I am currently building a site that utilises the Google Maps V3 API. It
I am building a 3 column layout with floated divs. I have a container
I'm building a little pagination with jquery. I found a plugin that does some
I've been building Conway's Life with javascript / jquery in order to run it
I am building an app using a web SQL database. I remember seeing somewhere
I'm building a site for a client and i've come across an issue where
I am building a html menu and I am using jQuery UI to format
I am building a GWT component to behave much like the comments box here
I am building an AJAX powered website which uses the Really Simple History (RSH)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.