0.0.1 • Published 8 years ago
cordova-plugin-adsvp v0.0.1
cordova-plugin-adsvp* Beta (Need Contributors for Android Dev. and iOs Testing)
You can play a video withouts controls for the user with a timer for force the user see the video.
This plugin provides a the access to the player using cordova.plugins.AdsVP.play()
cordova.plugins.AdsVP.play( "http://myvideo.com/video.mp4,
successCallback,
errorCallback,
{
"forceRotation" : "landscape",
"isSkippable" : true,
"skippableInSeconds" : 15,
}
);
The successCallback always return a status that can be one of the follow:
INIT_SUCCESS: Video has been initizalized
VIDEO_STARTED: Video is begin playing
VIDEO_ENDED: Video has terminated
VIDEO_SKIPPED: The user has click on close button before the video end
0.0.1
8 years ago