top

avplay

This class defines functions to get the avplay object.

Add the following line for avplay class into a html file your own :

  script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/webapis.js">/script>

You can declare avplay class like this :

  ex) var avplay = webapis.avplay;


Methods

getAVPlay

Description
Gets the avplay object which plays an audio/video file
Parameters
■successCallback
  - Function
  - To be invoked if the operation is successfully 
■errorCallback (Optional)
  - Function
  - Function called when an error occurs
Return■Void
Emulator SupportY
SDK ConstraintNone
Example
function successCB(avplayObj) {
     console.log("getting avplay object successfully");
  }

 function errorCB(error) {
     console.log("Cannot get avplay object : " + error.name);
 }

 webapis.avplay.getAVPlay(successCB, errorCB);