/    Sign up×
Community /Pin to ProfileBookmark

Has anyone figured out this audio-for-web problem?

This is what the problem is: You’ve got to put your Flash audio-player (or other player) in a [B]frame[/B], or [B]iFrame[/B], so that every time the user clicks on a new page, the song [I]doesn’t[/I] start loading [I]again[/I] from the beginning, but continues to play smoothly without interruption. I currently have that set up… and it’s stupid to have to break the website into frames, just so that I can play a smooth continuous audio.

Last time I checked here, half year ago, there was no solution for that. Has anyone found a solution? [U]The idea is[/U]:

[LIST]

  • Not to break the site into frames

  • [/LIST]
    [LIST]
  • To put the link to your Flash audio player inside every HTML page

  • [/LIST]

    [LIST]
  • Once you click on links for different pages, the audio [I]doesn’t[/I] load again from the beginning for each time you click on a new link

  • [/LIST]

    to post a comment
    Full-stack Developer

    7 Comments(s)

    Copy linkTweet thisAlerts:
    @KravvitzNov 25.2007 — The other solution is to use a small popup window.
    Copy linkTweet thisAlerts:
    @Major_PayneNov 25.2007 — Yep, Kravvitz's idea is good (except for certain effective pop-up blockers), but I would set the pop-up absolutely positioned (to not be obtrusive) and just small enough to show controls. Or better yet, just a Player on/off control.

    Ron
    Copy linkTweet thisAlerts:
    @jamesx521authorJan 12.2008 — This is what the problem is: You've got to put your Flash audio-player (or other player) in a [B]frame[/B], or [B]iFrame[/B], so that every time the user clicks on a new page, the song [I]doesn't[/I] start loading [I]again[/I] from the beginning, but continues to play smoothly without interruption. I currently have that set up... and it's stupid to have to break the website into frames, just so that I can play a smooth continuous audio.

    Last time I checked here, half year ago, there was no solution for that. Has anyone found a solution? [U]The idea is[/U]:
    [LIST]
  • Not to break the site into frames
  • [/LIST]

    [LIST]
  • To put the link to your Flash audio player inside every HTML page
  • [/LIST]

    [LIST]
  • Once you click on links for different pages, the audio [I]doesn't[/I] load again from the beginning for each time you click on a new link
  • [/LIST]
    [/QUOTE]

    I just figured out I had written this wrong. You [I]can't even use an [B]iFrame[/B][/I] for that purpose, because the content in the iFrame loads again. I just tested having the audio player in the iFrame, and each time I clicked on Page1 and Page2 the audio loaded again from the beginning. Grrrrrr! So, the only option is [I]frames[/I] only for now, no iFrames! This is really ridiculous... there should be a solution for that!

    I thought an iFrame in a way is actually a frame.... What's up with that... why does it have to reload the content in it?
    Copy linkTweet thisAlerts:
    @jamesx521authorJan 12.2008 — I don't see the idea for a pop-up window working well with users. So, let's say their pop-up blocker doesn't block it and it comes up playing the audio... you have two windows open, right? Do they have to click back on the Home page, so that the audio window goes behind, so they can navigate through the site?
    Copy linkTweet thisAlerts:
    @Major_PayneJan 12.2008 — So, the only option is [I]frames[/I] only for now, no iFrames! This is really ridiculous... there should be a solution for that!

    I thought an iFrame in a way is actually a frame.... What's up with that... why does it have to reload the content in it?[/QUOTE]
    Why not set up a nice standard html page with the player working the way you want and "embed" it into the page you wish it to appear on? Basically code like this:
    [CODE]
    <div id="obj">
    <object id="Image_Shack" type="text/html" style="width:790px; height:100%;" data="http://profile.imageshack.us/user/PayneLessDesigns/"></object>
    </div>
    [/CODE]

    Set id="" styling to your own tastes. Change other parameters as needed. The data=" ... " points to your player page. Haven't tried this with your code so may not work.

    Ron
    Copy linkTweet thisAlerts:
    @jamesx521authorJan 12.2008 — Wait... embeding 15-20MB of audio? The audio player doesn't have only one looping sample. It has many song samples that people can choose from. It's a website for a musician.
    Copy linkTweet thisAlerts:
    @Major_PayneJan 12.2008 — Your are not embedding per se. If you get the one html file to work where your player is embedded, then all you need to do is call that page where it is placed on another html file. You have an html file inside an html file without the object or embed tags. The only problem is to get your multiple player working on just the one html file that can be called from any of your web pages.

    Ron
    ×

    Success!

    Help @jamesx521 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...