SureVideo Android Javascript APIs

By 42Gears Team
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
window.surevideo.
  • 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:

custom_homescreen

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

“Written with expertise and passion to help you understand the topic better.”

4
42Gears Team – Content Author
Published on: March 7, 2014

Subscribe to our newsletter

Stay updated with the latest news, articles, and resources on enterprise mobility.

Weekly articles
Actionable insights delivered once a week. No noise.
No spam
Your privacy matters. Unsubscribe anytime.