Your SlideShare is downloading. ×
[Android] Multimedia Programming
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

[Android] Multimedia Programming

801
views

Published on

1. Media Playback …

1. Media Playback
2. Audio Capture
3. JetPlayer
4. Camera
5. Creating Sound Effects
5.1 SoundPool
5.2 MediaPlayer

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
801
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Android Programming Lesson 14Multimedia Programming NGUYEN The Linh
  • 2. Android ProgrammingContents 1 Media Playback 2 Audio Capture 3 JetPlayer 4 Camera 5 Creating Sound Effects 2
  • 3. Android ProgrammingMultimedia Programming Media Playback 3
  • 4. Android ProgrammingMedia Playback The Android multimedia framework includes support for playing variety of common media types, so that you can easily integrate audio, video and images into your applications. You can play audio or video from media files stored in your applications resources (raw resources), from standalone files in the file system, or from a data stream arriving over a network connection, all using MediaPlayer APIs. 4
  • 5. Android ProgrammingMedia Playback http://developer.android.com/guide/topics/media/mediaplay er.html 5
  • 6. Android ProgrammingMultimedia Programming Audio Capture 6
  • 7. Android ProgrammingAudio Capture The Android multimedia framework includes support for capturing and encoding a variety of common audio formats, so that you can easily integrate audio into your applications. You can record audio using the MediaRecorder APIs if supported by the device hardware. 7
  • 8. Android ProgrammingAudio Capture http://developer.android.com/guide/topics/media/audio- capture.html 8
  • 9. Android ProgrammingMultimedia Programming JetPlayer 9
  • 10. Android ProgrammingJetPlayer The Android platform includes a JET engine that lets you add interactive playback of JET audio content in your applications. You can create JET content for interactive playback using the JetCreator authoring application that ships with the SDK. To play and manage JET content from your application, use the JetPlayer class. 10
  • 11. Android ProgrammingJetPlayer http://developer.android.com/guide/topics/media/jetplayer.h tml 11
  • 12. Android ProgrammingMultimedia Programming Camera 12
  • 13. Android ProgrammingCamera The Android framework includes support for various cameras and camera features available on devices, allowing you to capture pictures and videos in your applications. The Android framework supports capturing images and video through the Camera API or camera Intent. Here are the relevant classes:  Camera: This class is the primary API for controlling device cameras. This class is used to take pictures or videos when you are building a camera application. 13
  • 14. Android ProgrammingCamera  SurfaceView: This class is used to present a live camera preview to the user.  MediaRecorder: This class is used to record video from the camera.  Intent: An intent action type of MediaStore.ACTION_IMAGE_CAPTURE or MediaStore.ACTI ON_VIDEO_CAPTURE can be used to capture images or videos without directly using the Camera object. 14
  • 15. Android ProgrammingCamera http://developer.android.com/guide/topics/media/camera.ht ml 15
  • 16. Android ProgrammingMultimedia Programming Creating Sound Effects 16
  • 17. Android ProgrammingCreating Sound Effects http://developer.android.com/reference/android/media/Sou ndPool.html SoundPool MediaPlayer 17
  • 18. Android ProgrammingCreating Sound Effects SoundPool  SoundPool is designed for short files which can be kept in memory decompressed for quick access, this is best suited for sound effects in apps or games. MediaPlayer  MediaPlayer is designed for longer sound files or streams, this is best suited for music files or larger files. The files will be loaded from disk each time create is called, this will save on memory space but introduce a small delay (not really noticeable). 18
  • 19. Android Programming