I have an HTML5 player using the <video>
tag, but I have the video (which is transmitted via DASH protocol) to be loaded into the tag using a bookstore javascript. I need to have exactly the same video in a popup that the user can open, and here comes the problem: if I load the video using the bookstore above, past two, three apertures the page can no longer open the videos, so I thought in copying the HTML of the '' already processed, which would avoid any further use of the bookstore. I load the video like this:
var url = videoOut + 'videorecording/' + videoguid + '/manifest.mpd';
var player = dashjs.MediaPlayer().create();
var videoPlayer = document.querySelector('#videoPlayerPopUp');
player.initialize(videoPlayer, url, false);
I have this code (1) to try to copy the above player without having to use the bookstore again:
var playerHTML =document.getElementById("hero-unit").innerHTML;
document.getElementById("videoPaste").innerHTML = playerHTML;
Within hero-unit
I have this HTML:
<video width="380px" height="288px" id="videoPlayer" controls="" preload="auto" src="blob:http://localhost/25ac2810-36ef-452c-844b-cad58a2773cf"></video>
I thought the above JS code (1) would copy just that, but what I have in videoPaste
is this:
<video width="380px" height="288px" id="videoPlayer" controls="" preload="auto"></video>
Is it because the video has to be uploaded through the bookstore or am I copying poorly?