diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-5F4510C9-5B16-593A-A225-37606800915B.dita --- a/Symbian3/SDK/Source/GUID-5F4510C9-5B16-593A-A225-37606800915B.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-5F4510C9-5B16-593A-A225-37606800915B.dita Tue Jul 20 12:00:49 2010 +0100 @@ -11,7 +11,7 @@ PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> Controlling Video Playback

This tutorial describes how to control video playback.

Purpose

The purpose of this tutorial is to show you how to use the video player to control video playback.

Required Background

The Video Client Overview introduces the video client utilities.

Introduction

The video player utility is used to open, play, and obtain information from sampled video data. This functionality is implemented by the CVideoPlayerUtility class. The video data can be supplied either in a file, a descriptor or a URL.

The sequence diagram below explains the different functionalities of the Video Player Utility:

Video Player sequence diagram -
Using Video Player

The following tasks will be covered in this tutorial:

  • Play Video Clips

  • Get Current Frame

Playing Video Clips

The high level steps to play video clips are shown here:

  1. After configuring the properties, the CVideoPlayerUtility::Play() function is called for the video clip to be played.

  2. The play can be paused for a small duration using CVideoPlayerUtility::PauseL() and later resumed by calling CVideoPlayerUtility::Play() function once again.

  3. To halt the video play CVideoPlayerUtility::Stop() is called.

  4. In order to unload all related controllers and return, use CVideoPlayerUtility::Close().

These high level steps are shown in the following example code:

void CPlayVideo::Play() //Starts playback of the video clip +
Using Video Player

The following tasks will be covered in this tutorial:

  • Play Video Clips

  • Get Current Frame

Playing Video Clips

The high level steps to play video clips are shown here:

  1. After configuring the properties, the CVideoPlayerUtility::Play() function is called for the video clip to be played.

  2. The play can be paused for a small duration using CVideoPlayerUtility::PauseL() and later resumed by calling CVideoPlayerUtility::Play() function once again.

  3. To halt the video play CVideoPlayerUtility::Stop() is called.

  4. In order to unload all related controllers and return, use CVideoPlayerUtility::Close().

These high level steps are shown in the following example code:

void CPlayVideo::Play() //Starts playback of the video clip { iVideoUtility->Play(); }