Video loading message until response comes from backend

Issue Video Upload.js var json = { “request”: { “service”:{ “servicetype”:servicetype, “session_id”: session_id }, “data”:{ “rolename”:rolename } } }; FileService.uploadFile( json, file ).then(function(res){ console.log(JSON.stringify(res)); if( res && res.status.code == 0 ) { $scope.getVideo( res.data.mediaids[0] ); $scope.getAll(); } else FlashService.Error(res.status.message, true);

Continue reading

Make HTML5 video poster be same size as video itself

Issue Does anyone know how to resize the HTML5 video poster such that it fits the exact dimensions of the video itself? here’s a jsfiddle which shows the problem: http://jsfiddle.net/zPacg/7/ here’s that code: HTML: <video controls width=”100%” height=”100%” poster=”http://www.wpclipart.com/blanks/buttons/glossy_buttons/glossy_button_blank_orange_rectangle.png”> <source

Continue reading

Playing and looping multiple videos in a file (HTML)

Issue I cant seem to get the videos to loop continuously. It is only playing one video so far. <body onload=”onload();”> <h1>Video Autoplay</h1> <div id=”message”></div> <input type=”file” id=”ctrl” webkitdirectory directory multiple/> <video id=”ctrl” onended=”onVideoEnded();” autoplay loop></video> <script> var playSelectedFile =

Continue reading

Draw VideoJS frames by a canvas

Issue It’s posted that once you use VideoJS for playing video, you shouldn’t touch the <video> tag used by VideoJS never again: I’m drawing video frames to canvas by such a code taken from here: document.getElementById(“btn”).onclick = (evt) => {

Continue reading

how to play blob video in angular

Issue i am building a mobile app with a=ionic,i want to be able to play a blob file from uploaded video but i got this in the console unsafe:blob:http://localhost:8100/3d42df5b-d852-4cac-83d8-af0c6d514b04 net::ERR_UNKNOWN_URL_SCHEME Here is my code <input type="file"accept="video/*" #fileInput name="proPics" (change)="onSelectedFile($event)"> preview(files)

Continue reading