| Applies to: | |
| Product | SureVideo |
| Platform | Android |
SureVideo for Android now comes with built-in set of Javascript APIs. Use these APIs in an HTML file and specify the file as Custom Layout Home Screen.
The APIs are written as window.surevideo.
Following is a comprehensive list of SureVideo APIs:
- launch('file_path'): Launches a media file.
window.surevideo.launch('/mnt/sdcard/samplevideo.mp4');
- loopMedia(): Loops the allowed media files once and returns back to SureVideo Home Screen.
window.surevideo.loopMedia();
- launchApp('packagename' , freshlaunch): Launches an application.
window.surevideo.launchApp('com.android.contacts', true);
- closeSureVideo(): Closes SureVideo.
window.surevideo.closeSureVideo()
Sample HTML Home Screen with SureVideo APIs:

HTML Code for Sample HTML Home Screen:
| Demo Video | Products | Click to loop videos |
|---|---|---|
| Testimonials | ||
To know more about SureVideo, click here
To download a trail version, click here
For any other queries, send an email to info@42gears.com