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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -