Open fhickler opened 12 years ago
Have you tried using an iframe to display the content? You shouldn't be loading complete HTML documents with ajax.
I am also experiencing this same issue. Using an iFrame the issue does not occur. However, I'm not loading a complete HTML document - my AJAX is only returning the video tag, so ideally this would work without having to resort to an iFrame.
I had this issue, too, and have worked around it by triggering play via JS.
This seems like bug with <video>
tag handling in particular browser versions. I also manually start play via JavaScript to be on the safe side.
It seems that html5 video inside a colorbox will not autoplay.
I have a test site set up to demonstrate this issue. It's a main page that opens a colorbox with an explicit url of a sub page. That sub page uses the html5 video tag with auotoplay set to true (autoplay="autoplay") to display a video. The video does begin loading, but in Chrome and Safari, it doesn't autoplay. It DOES in Firefox and IE9. If you open the sub.html page directly, it autoplays in all browsers, so it appears to be a colorbox-related issue.
The test site is up at: http://fisheyemedia.net/test/main.html
code for the main page:
and for the sub page: