jerryjazzz / cordova-plugin-adsvp

Cordova Advertising Video Player Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Cordova Advertising Video Player Plugin

License:Apache License 2.0


Languages

Language:Objective-C 85.5%Language:Java 7.9%Language:JavaScript 6.6%