SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Opera Browser Problem

    For starters,

    The test view of my site is at http://www.robindean.com/main.html

    My prediciment ....

    When a visitor goes to my site, audio should start playing automatically. I'm using "Wimpy Player" (wimpyplayer.com) to play my flash files.

    However, some browsers require that a viewer "click" on a flash file to activate it.

    That's a big problem.

    My audio playing flash docs are hidden in a frameset that is "0" tall, so when a viewer looks at it through say, Opera for mac (hint), they have no idea what they're missing.

    Is there a way to "activate" the flash docs automatically?

    If you want to see the hairy code and all, disable javascript in your browser and view the source code for http://robindean.com/audio.html

    And another question ... is there a simple object based way to say "if Opera, do this"?

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can detect Opera with "if (window.opera) {...}"

    I use Opera all the time - but I don't allow flash to run.

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by robindeandotcom
    However, some browsers require that a viewer "click" on a flash file to activate it.

    That's a big problem.
    This is because of the stupid Eolas patent. Eolas have threatened to sue browser vendors who provide 'seamless integration' with external content. Open source browsers (like Firefox) are exempt, but no others.

    That's why Opera had to include the 'click to start' thing: to avoid being sued. Don't blame Opera. Blame Eolas.
    Birnam wood is come to Dunsinane

  4. #4
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't know that. Thanks for the info, Tommy.

  5. #5
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way to detect "Eolas Infected" browsers via javascript?

  6. #6
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can detect Opera by testing for the presence of the window.opera property.

    I wouldn't recommend any form of 'detection' script, though. That will end up like the horrible browser sniffing scripts of the '90s. They'll break as soon as a new browser gets on the market, or create a maintenance nightmare.
    Birnam wood is come to Dunsinane


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
  •