Accessibility

Table of Contents

Understanding video formats and controlling video volume in Flash Lite 3.x

Working with supported video formats and codecs

The addition of digital video to your mobile application adds significant value by offering the user a fully immersive experience. However, it is important to have a clear understanding of the type of video formats that are supported in order to develop applications that provide a seamless delivery of the media without any display issues.

The constraints of the processor speeds of handsets and the limitations of the mobile device networks can be challenging, but with perseverance it is possible to deliver and control video playback on devices. In this section I'll describe the different types of video formats,

Video formats

There are two major types of video formats used in media for Flash Lite applications:

  • Device
  • Native

Device video

Device videos are categorized as the type of video format that are decoded by the device itself. In this situation, Flash Lite player leverages the device's APIs to decode and playback (render) the video on the handset screen. A device video cannot be streamed; it must first be downloaded before playing.

The reason device videos cannot be streamed has to do with the decoding process. The run time executable (Flash Lite application) does not understand the video format and therefore it can only load a local video as a complete chunk and play it back (without returning the progress, duration and other metadata information). Flash Lite player can communicate to the platform, and this communication allows the information regarding the area where the platform should play the video to be passed to the device. At this point, the device platform renders the video.

The decoding process for device video is also the reason why it is not possible to overlay any other element on top of the device video in the mobile application. Device video always remains in front when displayed on the screen.

The following list of device video and audio codecs are supported by Symbian Mobile Platform:

Video Codecs:

  • H.263
  • PO L10
  • MPEG-4
  • Real Video (7, 8, 9 and 10)

Audio Codecs:

  • AMR-NB
  • Real Audio 7,8,10
  • AAC
  • AAC+

Note: These are not all-inclusive lists.

Native Video

Native videos are categorized as the types of video formats that are decoded by Flash Lite player and are then rendered on the handset screen. Since Flash Lite player is responsible for the decoding, you have the opportunity to use ActionScript to control how the video plays.

The following list of native video formats are supported by Flash Lite 3.x:

  • On2 (TrueMotion VP6)
  • Sorenson Spark (Sorenson Video Quantizer)

Note: The list of supported native video formats will vary depending on the specific platforms and versions of Flash Lite player you use to develop your project.

Supported RTMP (Real Time Messaging Protocol) video formats

Of all the different flavors of RTMP video, Flash Lite 3.x only supports the standard RTMP (Real Time Messaging Protocol) video format; other variants are not supported:

  • RTMP - Supported
  • RTMPT - Not supported
  • RTMPS - Not supported
  • RTMPE - Not supported
  • RTMPTE - Not supported
  • RTMFP - Not supported

In the next section, I'll describe a strategy you can use to control the soundtrack of a native video that is streaming in a Flash Lite 3.x mobile application.