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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -