This page was last modified 15:06, 24 March 2008.
Video Recording and Video Playing APIs
From Forum Nokia Wiki
Using CVideoRecorderUtility and CVideoPlayerUtility we can record the video and play the video file. Following are steps to record and playing video files:
Contents |
Video Recording
CVideoRecorderUtility provides the features to record video clips to files, descriptor or URL's and manipulate embedded meta data. Following steps are to record the video file
Opening Video
This is the first step, we need to specify the handler to the camera, the controller UID, and the video formats and codecs using for video. Following are different functions to opening the video file:
- CVideoRecorderUtility::OpenFileL(): This function is used to record video clips to files.
- CVideoRecorderUtility::OpenDesL(): This function is used to record video clips into descriptor.
- CVideoRecorderUtility::OpenUrlL(): This function is used to record video clips into URLs
Configuring Video
After opening the video, we need to configure the video. In this configuration part, we need to set the priority,MIME types and codecs, Bits and frame rates and finally set gain settings using GainL() or SetGainL() or MaxGainL().
Recording
While creating the Video recording applications we need to use the observer class MVideoRecorderUtilityObserver. It has following callback functions:
- MvruoOpenComplete: Once after calling OpenFileL() or OpenDesL() or OpenUrlL() function, if the opening video complete then this callback function will be called.
- MvruoPrepareComplete: After the Opening completes, then we need to call Prepare() function, if preparing video complete then this callback will be called
- MvruoRecordComplete: After the Preparing video completes, we need to call Record() function, after recording completes this callback will be called.
- MvruoEvent: This is the general event notification from the controller.
Video Playing
CVideoPlayerUtility provides the features to play video files or play video from descriptors or play video from URL. Following steps are used to play video:
Opening Video
CVideoPlayerUtility provides following methods to open the video
- CVideoPlayerUtility::OpenFileL(): This method is used to play video from file.
- CVideoPlayerUtility::OpenDesL(): This method is used to play video from descriptor
- CVideoPlayerUtility::OpenUrlL(): This method is used to play video from URL.
Configure Video
While configuring the video, we need to set the priority, MIME type and codecs, Bit and framerates, Volume settings like Volume() or SetVolumeL() or MaxVolume(), and audio playback balance settings using SetBalanceL().
Playing Video
While creating video playing applications, we need to use the observer class MVideoPlayerUtilityObserver. And observer class has following callback functions:
- MvpuoOpenComplete: After opening the video file completes, this callback function will be called.
- MvpuoPrepareComplete: After opeing the video file comples, we need to call Prepare() function, if the prepare completes then this callback will be called.
- MvpuoPlayComplete: After preparing the video file completes, then we need to call Play() function, after playing completes this callback will be called.
- MvpuoEvent: This is the general event notification from controller.
We can also Pause the video playing using CVideoPlayerUtility::Pause() and Stop the video playing using CVideoPlayerUtility::Stop()
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NOKIA 3250 SYNC PROBLEM | big_poppa_8912 | General Discussion | 5 | 2006-07-20 12:28 |
| Diaplaying a image | aquarian3183 | Symbian Media (Graphics & Sounds) | 10 | 2008-06-03 10:24 |
| Media Player | praveen.nitdgp@gmail.com | General Symbian C++ | 3 | 2008-05-08 05:59 |
| 7610/Series 60 videos are only half size | lightfield | Mobile Java Media (Graphics & Sounds) | 3 | 2005-10-20 08:41 |
| Video in the Prototype_4_0_s60_MIDP_Emulator | ninku6a | Mobile Java Media (Graphics & Sounds) | 3 | 2006-03-06 19:10 |
