百度智能云

All Product Document

          Multimedia Cloud Processing

          Event Response Interface

          cyberplayer: onConnection

          Parameter list: Function

          Return type: None

          Interface features: Monitor the live stream status and trigger after successfully establishing the connection.

          Code example:

          myPlayer.onConnection(function(){ 
              log("onConnection"); 
          }); 

          cyberplayer: onAlive

          Parameter list: Function

          Return type: None

          Interface features: Monitor the live stream status, triggered when there is live stream.

          Code example:

          myPlayer.onAlive(function(){ 
              log("onAlive"); 
          }); 

          cyberplayer: onNoLiveStream

          Parameter list: Function

          Return type: None

          Interface features: Monitor the live stream status, triggered when there is no live stream.

          Code example:

          myPlayer.onNoLiveStream(function(){ 
              log("onNoLiveStream"); 
          }); 

          cyberplayer: onLiveStop

          Parameter list: Function

          Return type: None

          Interface features: Monitor the live stream status, triggered when the live pauses.

          Code example:

          myPlayer.onLiveStop(function(){ 
              log("onLiveStop"); 
          }); 

          cyberplayer: onBuffer

          Parameter list: Function

          Return type: None

          Interface features: Set the player cache event monitoring function.

          Code example:

          myPlayer.onBuffer(function(event){ 
              log("onBuffer"); 
          }); 

          cyberplayer: onBufferChange

          Parameter list: Function

          Return type: void

          Interface features: Set the player caches change monitoring function.

          Code example:

          myPlayer.onBufferChange(function(event){ 
              log("buffer percent : " + event.bufferPercent + "; position : " + event.position); 
          }); 

          cyberplayer: onBufferFull

          Parameter list: Function

          Return type: None

          Interface features: Set the player cache full load status monitoring function.

          Code example:

          myPlayer.onBufferFull(function(event){ 
              log("onBufferFull"); 
          }); 

          cyberplayer: onComplete

          Parameter list: Function

          Return type: None

          Interface features: Set the completed event monitoring function of the player.

          Code example:

          myPlayer.onComplete(function(event){ 
              log("onComplete"); 
          }); 

          cyberplayer: onError

          Parameter list: Function

          Return type: None

          Interface features: Set the player error monitoring function.

          Code example:

          myPlayer.onError(function(event){ 
              log("onError"); 
          }); 

          cyberplayer: onFullscreen

          Parameter list: Function

          Return type: None

          Interface features: Set the player full-screen status change monitoring function.

          Code example:

          myPlayer.onFullscreen(function(event){ 
              log("onFullscreen"); 
          }); 

          cyberplayer: onIdle

          Parameter list: Function

          Return type: None

          Interface features: Set the player cache leisure event monitoring function.

          Code example:

          myPlayer.onIdle(function(event){ 
              log("onIdle"); 
          }); 

          cyberplayer: onMeta

          Parameter list: Function

          Return type: None

          Interface features: Set the player metadata receiving function.

          Code example:

          myPlayer.onMeta(function(event){ 
              log("onMeta"); 
          }); 

          cyberplayer: onMute

          Parameter list: Function

          Return type: None

          Interface features: Set player audio switch change monitoring function.

          Code example:

          myPlayer.onMute(function(event){ 
              log("onMute"); 
          }); 

          cyberplayer: onPause

          Parameter list: Function

          Return type: None

          Interface features: Set the player pause event monitoring function.

          Code example:

          myPlayer.onPause(function(event){ 
              log("onPause"); 
          }); 

          cyberplayer: onPlay

          Parameter list: Function

          Return type: None

          Interface features: Set the player play event monitoring function.

          Code example:

          myPlayer.onPlay(function(event){ 
              log("onPlay"); 
          }); 

          cyberplayer: onPlaylist

          Parameter list: Function

          Return type: None

          Interface features: Set the player playlist receiving function.

          Code example:

          myPlayer.onPlaylist(function(event){ 
              log("buffer percent : " + event.bufferPercent + "; position : " + event.position); 
          }); 

          cyberplayer: onPlaylistItem

          Parameter list: Function

          Return type: None

          Interface features: Set the currently playing item change monitoring function of the player.

          Code example:

          myPlayer.onPlaylistItem(function(event){ 
              log("onPlaylistItem"); 
          }); 

          cyberplayer: onReady

          Parameter list: Function

          Return type: None

          Interface features: Set the player ready-to-play event monitoring function.

          Code example:

          myPlayer.onReady(function(event){ 
              log("onReady"); 
          }); 

          cyberplayer: onResize

          Parameter list: Function

          Return type: None

          Interface features: Set the player window size change monitoring function.

          Code example:

          myPlayer.onResize(function(event){ 
              log("onResize"); 
          }); 

          cyberplayer: onSeek

          Parameter list: Function

          Return type: None

          Interface features: Set the player dragging event monitoring function.

          Code example:

          myPlayer.onSeek(function(event){ 
              log("onSeek"); 
          }); 

          cyberplayer: onTime

          Parameter list: Function

          List of callback parameters: Object - TimeEvent

          Return type: None

          Interface features: Set the play process changing event monitoring function of the player.

          Code example:

          myPlayer.onTime(function(event){ 
              log("onTime"); 
          }); 

          cyberplayer: onVolume

          Parameter list: Function

          Return type: None

          Interface features: Set the player sound volume change event monitoring function.

          Code example:

          myPlayer.onVolume(function(event){ 
              log("onVolume"); 
          });
          Previous
          Control Interface
          Next
          Andriod Platform