SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IFRAME usage to display a flash music player...

    I'm having a problem with a flash music player I made.

    If no frames are used, the song resets every time the user goes onto a new page.

    If I put the music player into it's own IFRAME then it works fine in Firefox and Opera. I'm too scared to look what kind of mess IE makes.

    Anyway, I thought maybe there was a better way than using frames? Anyone got any ideas?

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How are you embedding it? Maybe you just need wmode="transparent" on the embed/object element. And since the iframe is a seperate document, try matching the background on the iframe itself?

    Though you may not be able to do anything at all, that's just how it works.
    Cross browser css bugs

    Dan Schulz you will be missed

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I solved the transparency issue by using CSS to explicitly state every element have no background. Still not sure how it's going to look in IE but I'll cross that bridge when I come to it.

    For now I'm just wondering if there is a better way than using a frame...

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    If you didn't set a backgground explicitly already you could simply do
    *{margin:0;padding:0;background:none!important;}
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  5. #5
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No, I do not think there is any other way to have no gap/restart (or some sort of noticeable change) as a user goes from page to page.

    Even if you tracked where the user was at in the song, stored it in a sharedObject and set it to start on each page load from where it left off there would still be a pause, making it unpleasant.

    The only better way I can think of is to not have the music start playing at all. Otherwise you will have to use a frame/iframe.

  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    But that's quite an annoyance for most users so beware: I gave you fair warning. Most people don't like music playing they didn't specifically want playing.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  7. #7
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, people don't always like music playing, especially if they don't like it. It may draw them away.

  8. #8
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I put a music player in an iframe to play music continuously throughout my site (I know, I know some people do not like music but you can shut this off and the site is for a band so the music is necessary).

    I thought I did everything correctly but the music stops and reloads on every page - help!! What am I doing wrong? Please respond to roadspy@aol.com. Thank you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •