Back

VideoView

Create a VideoView using the CreateVideoView function of the app object:

 player = app.CreateVideoView( width, height, options );

This control allows your program to play video files stored locally on the phone/tablet and also stream video from remote sources.

Use SetFile to set the video file or video stream address.

 player.SetFile( "http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8" );

When the video is ready to play, the OnReady callback function will be called, you can then use Play to start playing the video.

If the video cannot be played, the OnError callback function will be called. Use SetOnReady and SetOnError to set the names of your OnReady and OnError callback functions.

See 'CreateVideoView for more informations and a complete function list