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

Native HTML5 video #24

Open
Shulyaka opened this issue Mar 11, 2015 · 0 comments
Open

Native HTML5 video #24

Shulyaka opened this issue Mar 11, 2015 · 0 comments

Comments

@Shulyaka
Copy link

Hi

I think the time has come that all modern browsers are now able to play video with built-in players. Please consider the possibility to implement the following code, which I have successfully tested on Firefox (Windows and Linux) and Chrome (Android):

// HTML5 Video
} else if (URL.match(/.mp4|.avi|.mts/i)) {
mediaType = 'video';
mediaWidth = mediaWidth || options.defaultWidth;
mediaHeight = mediaHeight || options.defaultHeight;
mediaId = "mediaId_"+new Date().getTime(); // Safari may not update iframe content with a static id.
preload = new Element('video', {
'src': URL,
'id': mediaId,
'width': mediaWidth,
'height': mediaHeight,
'frameborder': 0,
'controls': 1
});
startEffect();

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

1 participant