• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Android Training Lecture 14
 

Android Training Lecture 14

on

  • 751 views

 

Statistics

Views

Total Views
751
Views on SlideShare
751
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Android Training Lecture 14 Android Training Lecture 14 Presentation Transcript

    • Android Programming Lesson 14Multimedia Programming NGUYEN The Linh
    • Android ProgrammingContents 1 Media Playback 2 Audio Capture 3 JetPlayer 4 Camera 5 Creating Sound Effects 2
    • Android ProgrammingMultimedia Programming Media Playback 3
    • 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
    • Android ProgrammingMedia Playback http://developer.android.com/guide/topics/media/mediaplay er.html 5
    • Android ProgrammingMultimedia Programming Audio Capture 6
    • 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
    • Android ProgrammingAudio Capture http://developer.android.com/guide/topics/media/audio- capture.html 8
    • Android ProgrammingMultimedia Programming JetPlayer 9
    • 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
    • Android ProgrammingJetPlayer http://developer.android.com/guide/topics/media/jetplayer.h tml 11
    • Android ProgrammingMultimedia Programming Camera 12
    • 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
    • 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
    • Android ProgrammingCamera http://developer.android.com/guide/topics/media/camera.ht ml 15
    • Android ProgrammingMultimedia Programming Creating Sound Effects 16
    • Android ProgrammingCreating Sound Effects http://developer.android.com/reference/android/media/Sou ndPool.html SoundPool MediaPlayer 17
    • 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
    • Android Programming