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

WebM videos don't play in Safari browser (transcode?) #186

Open
bvibber opened this issue Dec 23, 2017 · 2 comments
Open

WebM videos don't play in Safari browser (transcode?) #186

bvibber opened this issue Dec 23, 2017 · 2 comments

Comments

@bvibber
Copy link

bvibber commented Dec 23, 2017

Ah, the fun fun world of video formats. :)

Uploaded WebM or Ogg videos such as on https://lib.reviews/team/developers/post/b0873e50-4830-4603-a765-2f1c16ac3029 don't play as-is on Safari (or on current versions of Edge, though Edge is adding support, currently installable via plugin).

screen shot 2017-12-22 at 4 44 10 pm

There are basically two ways to handle this: transcode to MP4 on the backend (may expose larger licensing issues), or to play them in non-supporting browsers via ogv.js by dynamically swapping out the video or audio element for an OGVPlayer instance.

One potential issue with ogv.js -- currently it looks like you're using the default browser controls on the playback element, and ogv.js doesn't by default ship with control support. I can fix that though. Alternate: use something like video.js as an intermediary.

@eloquence
Copy link
Owner

Yeah, I figured it wouldn't work in those browsers yet - thanks for taking the time to write up the issues! My thinking right now is to do server-side transcodes of Ogg/WebM to MP4 and vice versa, and to use <source> elements to enumerate the available versions. The H.264 fees seem to kick in only for content that's pay-to-play. ogv.js is very cool though :)

@bvibber
Copy link
Author

bvibber commented Dec 23, 2017

Great, transcoding is the best way if the licenses aren't an issue! :D

@bvibber bvibber changed the title WebM videos don't play in Safari browser (use ogv.js?) WebM videos don't play in Safari browser (transcode?) Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants