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();
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();