jquery - javascript create a video element on element not working in state blob url -


i cloning element in developing chrome extension video. setting src attribute url of video element not working.

i using xhr in javascript file in browser.

var copycustomeplayer = function (video, element) {       var videohtml = "<video id=\"extensionvideo" + 1 + "\"          class=\"extension-video-player\" controls></video>";     var videoelement = $.parsehtml(videohtml)[0];     videoelement.currentsrc = video.currentsrc;     videoelement.src = video.src;     videoelement.currenttime = video.currenttime;            element.appendchild(videoelement);     body.appendchild(element); } 


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -