1 / 9

Android: Media API

Android: Media API. Group 8: Dylan Lentini (AE), Mandy Minuti (WSE), Jean Paul Galea (TL). What is the Android?. Used for Mobile Devices Includes: Operating System (Linux) Libraries (C/C++) Application Framework (API’s) Applications (Java). Android Application: 4 Elements. Activity

dakota
Download Presentation

Android: Media API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Android: Media API Group 8: Dylan Lentini (AE), Mandy Minuti (WSE), Jean Paul Galea (TL)

  2. What is the Android? • Used for Mobile Devices • Includes: • Operating System (Linux) • Libraries (C/C++) • Application Framework (API’s) • Applications (Java)

  3. Android Application: 4 Elements • Activity • Service • Intent • Content Provider

  4. Media API Playback Audio / Video Record android.media.MediaPlayer android.media.MediaRecorder

  5. Playback: MediaPlayer Basics • Play Media From: • Resource Folder • File System Path • URL • Basically • Create new instance of MediaPlayer • Call prepare() • Call start()

  6. Playback: MediaPlayer Class • Set: • Audio Stream • Output Display • Looping • Data Source • Wake Mode • Listeners: • Buffering Update • Completion • Error • When Prepared • Create Using: • URI • Resource ID • URI + Surface • Others: • Start • Prepare • Pause • Release • Reset • SeekTo • Stop • Get: • Position • Duration • FrameAt Inherits from java.lang.Object

  7. Recording: MediaRecorder • Create new instance of MediaRecorder • Create new instance of ContentValues • Create an output file • Set Preview Display • Set Video and Audio Source (Camera and Mic) • Set Properties (File Size, Video Size, Frame Rate) • Set Audio and Video Encoders • Call Prepare() and Start() • Call Stop() and Release()

  8. Uses of Media API • Call: • Receiving – Start mp3 background service • Automatically record conversation or 3G videos • Playing Games: • Sound mp3’s in background, render video in foreground • Clicking buttons sound small ticks (mp3’s) • Conference: • Recording and Playback of Mobile Conference • Synchronising Playback via Bluetooth on Projector • Record Sounds or Movements, Transform into Actions

  9. Thanks Questions? Have a good day 

More Related