Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Auotplay not working on Safari, & can't even CLICK play either...

4 replies [Last post]
Reply

I've used/enjoyed JWplayer for awhile now, but recently am using the autoplay functionality, which works on all browsers other than Safari.

OK. I guess, if Apple is restricting autoplay, me & my users will have to live with it.

BUT, on Safari, not only does autoplay not work, but also, the user can't even click to play it. The video is entirely unviewable by the users.

Example URL: http://www.gophoto.com/home_new (The video is in a hidden div that gets shown on clicking on that button down on the left.)

Any suggestions? Thanks!

Reply

@John -

This was a known issue with the 'autostart' option in iOS. It will be fixed in 5.9.

http://www.longtailvideo.com/support/forums/jw-player/bug-reports/22986/jw-embedder-autostarttrue-br...

Reply

Thanks @Pablo.

So, I just see that FIreFox (version 9, on Mac) is making the video not play either, and when clicked, opens the MP4 file in the URL/address bar, outside the context of the containing page.... doh! I think that's an entirely new behavior with Firefox?

And, for the Safari workaround, here's some code that I got working to turn on/off autostart for Safari:

function enable_autostart(){
var browser=navigator.appName;
var navindex=navigator.userAgent.indexOf('Safari');
var chromeindex = navigator.userAgent.indexOf('Chrome');
if ((navindex > 0 && chromeindex < 1 )|| browser=='Safari') {
//alert('safari=true');
return 'false';
} else {//alert('safari=false');
return 'true';}
}

Reply

That sounds like you may have disabled Flash in Firefox. The behavior you're describing occurs in Firefox when the player detects that the media can't be played in Flash or HTML5 mode, and reverts to a "download" mode (usually only used on older mobile devices).

Reply

@Pablo: That was it! Yes, I've been reading up more on video/html5 & such on your website, and LongTailVideo does have great expertise & responsiveness. Any time I have an issue, I find the answers here fast. Thanks so much!

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options