video live play for computer browser and mobile phone browser
two ways for it.
how to use:
open the index.html
:
-
modify something as you need
-
modify
js/live.min.js
with your own live video server:
var vServer = "rtmp://cppfun.com/live";
var vMp4url = "livestream";
var vIosurl = "http://cppfun.com/live/livestream.m3u8";
how to use:
open the video.html
:
-
modify something as you need
-
config:
(function () {
var player = new qcVideo.Player("id_video_container", {
"live_url" : "http://yourdomain.com/live/livestream.m3u8", // ios
"live_url2" : "rtmp://yourdomain.com/live/livestream", // other
"width" : 640,
"height" : 480
});
})();