Embedded video player code in the web page

Sometimes we have such a need, embed the video player in the web page to play our server-side video, below I put the code out:

Embed fast broadcast player:

   File list:  SETINTERVAL (SHOW1, 5000) // 5s Show a download progress VAR bstartnextplay = false; function show1 () {var pos = qvodplayer.get_curtaskprocess () / 10; Alert (POS); if (POS> 60) {startnextdownfile ();} var poSV = " The current download schedule is: "+ POS.TOSTRING (10) +"% "; var mediainfo1 = document.getlementByid (" MediaInfo "); MediaInfo1.innertext = posv;} function PointPlay (playername) {// alert (QvodPlayer); QvodPlayer.URL = playername; QvodPlayer.Play ();} function Stop () {QvodPlayer.Stop ();} function Pause () {QvodPlayer. Pause ();} function play () {qvodplayer.play ();} function gets () {var iv; var is = qvodplayer.playstate; Alert (IS); // alert (});} function power () { var v = 0; QvodPlayer.put_viewframe (v);} function puttrack (v) {QvodPlayer.put_soundtrack (v);} function putAdjustVideo (v) {QvodPlayer.put_AdjustVideo (v);} function putfull () {var v = true Qvodplayer.full = v;} var mute = false; function power () {if (mute) {mute = false;} else {mute = true;}} else {mute = true; qvodplayer.mute = mute;}} function curpos () {var pOS = 0; POS = qvodplayer.currentpos; alert (pOS);} function setpos (POS) {qvodplayer.currentpos = pos;} function setvolue (POS) {qvodplayer.volume = POS;} function OnLoad () {//alert (Document.Protocol); // var i = document.unique; var i = navigator.Appname; var b = navigator.USERAGENT;} Function Get_mainInfo () {var FileName; filename = "this" ; filename = QvodPlayer.get_MainInfo (); alert (filename);} function get_TaskDown () {var taskdown1 = QvodPlayer.get_CurTaskProcess (); alert (taskdown1);} function StartNextDownFile () {alert (QvodPlayer.get_CurTaskProcess ()); if (Qvodplayer.get_curtaskprocess ()> 600 &&! Bstartnextplay) {var URL = 'qvod: //69999035 | DBE1429630008370A3F01A38FC0C741ED648E9C0| Shangri-La 01.Rmvb | '; var rv = qvodplayer.startnextdown (URL); bstartnextplay = true;}} 
file 1
  • Love 33 days
  • Fast play player corresponding JS control code:

    Fast broadcast other corresponding operations and introduction See: http : //bbs.kuaibo.com/thread-592-1-1.html

    MediaPlayer webpage player code:
        


                                                                   JS Control Play Code:    Function Play (PATH) {var fm = document.GtelementByid ("myform"); frm.mediaplayer .Filename = PATH; fm.mediaplayer.Play ();}                            
    © Copyright Notice
    THE END
    Just support it if you like
    like0
    share
    comment Grab the couch

    Please log in to comment