Playing video

You can play video in your application on a BlackBerry® device by using the class.

The Player class lets you open a file that is stored on the BlackBerry device's built-in media storage or media card storage, by specifying a URL, or by specifying a location in your .cod file using the format: cod:///path. Player can retrieve the associated Control classes that you can use to control various aspects of playback (for example, the volume of the audio track).

To create a UI component that displays the video playback, you can invoke VideoControl.initDisplay() to retrieve a Field object that is added to your UI.

Was this information helpful? Send us your comments.