How to correctly create HTML5 audio and video with JavaScript -
I checked out and it seems that in javascript, we can create HTML5 audio in 2 ways, while the HTMLMax video Only one way:
Audio:
var audio = document.createElement ('audio');
or
var audio = new audio ();
Video:
var video = document.createElement ('video');
But is it true that new video ()
for HTML5 video?
// is not an equivalent manufacturer like: It seems there was no equivalent ..
Sorry, now there is no other way to dynamically use other than JavaScript in the video:
var video = document.createElement ('video');
Comments
Post a Comment