Symbian OS devices usually support all sorts of multimedia. In these slides, you will get an overview of the Multimedia Framework that Symbian OS offers to access those services, along with other means of using multimedia. In the challenge you'll see how to write your own mp3-audio player in just a few minutes.
Contents
* Multimedia
* Audio
* Video
* Camera
5. MultiMedia-Framework Plug-ins for audio and video Integrated support for codecs and formats Possibilities: Audio: play, record and convert Video: play and record Tones: play (sine waves, DTMF (Dual Tone Multi-Frequency)) Streaming Audio: play and record (e.g. web streams) Andreas Jakl, 2008 5
6. MMF Client API MMF – Structure Andreas Jakl, 2008 6 Audio Interface Audio Streaming Interface Tone Player Interface Video Interface record, play & convert record & play streaming audio in & out tones & DTMF MMF Controller Framework DevSound Audio controller plugin Video controller plugin Codec plugins Codec plugins Codec plugins
7. MMF Application communicates with Client-APIs Client-APIs use Controller Framework Controller Framework = Client/Server interface, provides functionality through plug-in resolver Controller Plug-ins provide specific multimedia functionality to the MMF Andreas Jakl, 2008 7 Controller Plugin Data format conversion Source(eg. file, microphone, camera) Sink(eg. file, speaker, screen)
8. Image Converter Library (ICL) Asynchronous conversion of image formats between CFbsBitmap and files / descriptors Supports formats through plugins Client-App communicates with generic class: CImageDecoder (file/descriptor CFbsBitmap) CBufferedImageDecoder (multiple files) CImageEncoder (CFbsBitmap file/descriptor) File type through file header or specified as parameter Andreas Jakl, 2008 8
11. Vector Graphics Scalable UI since S60 2nd Ed., FP3 Support for SVG-T (Scalable Vector Graphics – Tiny) Combination of multiple SVG files in a single .MIF-file (Multi-Image Files) similar to .MBM = Multi-Bitmap Files Loading and drawing: Create icon: AknIconUtils::CreateIconL(…) Set size: AknIconUtils::SetSize(…) Show: gc.BitBltMasked(…) Andreas Jakl, 2008 11 S60 menu: vectorgraphics!
12. Camera (in S60) Differences depending on Symbian OS SDK (http://www3.symbian.com/faq.nsf/0/AADD2D771E93636A80257233005922B3) Requires UserEnvironment-Capability (User-Grantable) Interaction through CCamera-Object, Callbacks to object derived from MCameraObserver Allows setting parameters (flash, exposure, contrast, zoom, …) No camera support in the emulator Andreas Jakl, 2008 12
13. Camera (in S60) Camera Capturing (nearlyeverythingisasynchronous!): CreateCCamera-Object(no Capabilitydefined: KErrPermissionDenied) Reservecamera (CCamera::Reserve()) Activatecamera (CCamera::PowerOn()) Settings:format, size, frame rate Capturing– Options: Single image(s) Video Viewfinder (Send images to specifiedmemoryregion) Andreas Jakl, 2008 13
14. OCR Introduced in S60 3rd Ed., FP1 – engine not yet available in devices Supports English, Japanese, Chinese Two options: Automatic layout analysis Manual regions Andreas Jakl, 2008 14
15. Tuner API (Radio) Access to radiotunerhardware Uses MMF forformatsupport, DevSoundforplaying Supports: RDS (Radio Data System) Playing Recording Searchingforstations Andreas Jakl, 2008 15
16. … let’s move to the Challenges! Try it for your own Andreas Jakl, 2008 16