Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoplay in Safari 7 #36

Open
sb-relaxt-at opened this issue Apr 28, 2014 · 2 comments
Open

Autoplay in Safari 7 #36

sb-relaxt-at opened this issue Apr 28, 2014 · 2 comments
Labels

Comments

@sb-relaxt-at
Copy link

There is an issue concerning enabled autoplay in Safari 7: When opening a page (especially in a new tab), the video won't start more often than not. The video remains in a loading state forever (rotating load indicator). A page refresh "solves" this problem. To reproduce this, add

autoplay: true,

to the video config in the readme.html of the current release and open it in Mac OS 10.9.2 using Safari 7.0.2. I have been able to reproduce it on a second installation as well.

@rwlodkowski rwlodkowski added the bug label May 6, 2014
@rwlodkowski
Copy link
Collaborator

@sb-relaxt-at could you give us more information?

  1. what's your projekktor version?
  2. what video format are you trying to play?
  3. what is your platforms config?

Probably with the 1.4.00 of projekktor your problems will gone. Could you test upcoming 1.4.00 here:
http://projekktor.wlodkowski.net/demo_1.4.00.php

and give us feedback if your issue still applies?

Best
fixedmachine

@sb-relaxt-at
Copy link
Author

I have been using 1.3.09 (current release) and just used the official demo (I have only added autoplay: true. There are webm, ogv and mp4 files included, I assume Safari to use the mp4.

The provided demo works only occasionally, sometimes it is sound only (black display). Sometimes either the first or the second loop play as expected. Interestingly it seems to work repeatable if either the Safari Devtools are open or if Safari has been reset in advance.

There is another annoying bug, which might be related. If you open the page and immediately open another tab (in a way that the page with the video loads in "the background"), the spinning indicator will be shown after switching back to this tab and you need to refresh the page.

Based on my research, it seems as if the autoplay issues related to "background loading" are independent of using a JS library. A simple HTML5 video shows the same strange behaviour if the page is loaded in the background. I have been starting to handle Safari like any mobile device and to disable autoplay as it seems to be very unreliable (at least since Safari 7)...

The issue concerning sound only playback might be solved by explicitly setting the poster value to an empty string when playback starts. This has solved a similar issue in a recent project of mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants