Android Development: Audio and Video
1h 46mIntermediate2019-04-16
Authors

Kevin Moore
Senior Android Developer for Pandora
Course details
Want to incorporate video and audio into your Android app? If so, then this course is for you. Join instructor Kevin Moore as he shows how to support video and audio playback using either the system widgets or ExoPlayer. Kevin begins by covering the Android multimedia framework, explaining how to work with AudioManager to control audio focus and volume, as well as how to play audio with MediaPlayer. Plus, learn how to work with the SoundPool class for preloading and playing audio, create a media-rich project with ExoPlayer—an application-level media player from Google—and more. Follow the coding examples throughout the course for hands-on learning.
Learning objectives
Why your app needs audio and video
Controlling volume with AudioManager
Playing audio with MediaPlayer
Playing multiple sound files at once with SoundPool
Creating a VideoView UI
Playing media in the background
Audio and video formats
Working with ExoPlayer
Learning objectives
Why your app needs audio and video
Controlling volume with AudioManager
Playing audio with MediaPlayer
Playing multiple sound files at once with SoundPool
Creating a VideoView UI
Playing media in the background
Audio and video formats
Working with ExoPlayer
Skills covered
Android DevelopmentAndroidMobile DevelopmentGoogleProject
Concepts
Android Multimedia
- 01 - Create media rich apps with Android
- 02 - What you should know
1. Android Multimedia
- 03 - Why your app needs audio and video
- 04 - Two ways to play - Android or ExoPlayer
- 05 - Media locations - Local or streaming
- 06 - Playing audio and video
2. AudioManager
- 07 - AudioManager overview
- 08 - Set the volume
- 09 - Audio focus
- 10 - Abandoning audio focus
- 11 - Internet and WakeLock permissions
3. MediaPlayer
- 12 - Setup
- 13 - States
- 14 - Loading files
- 15 - Playing media
4. SoundPool
- 16 - SoundPool overview
- 17 - Load files with SoundPool
- 18 - Play files with SoundPool
- 19 - Hooking UI controls to SoundPool
5. VideoView
- 20 - VideoView overview
- 21 - Create a VideoView UI
- 22 - Playing and pausing VideoView
6. MediaSession
- 23 - MediaSession overview
- 24 - MediaSession example usage
7. Playing Media in the Background
- 25 - Channels
- 26 - Notifications
- 27 - Background services
- 28 - Create MediaPlayer
- 29 - Create stop and pause method
- 30 - Create play method
8. Formats
- 31 - Audio formats
- 32 - Video formats
9. ExoPlayer
- 33 - Overview and library setup
- 34 - Initialization
- 35 - Load and play media
- 36 - Create video and audio player
- 37 - Create media sources
- 38 - Set up players
Conclusion
- 39 - Next steps
Related courses
- Java Design Patterns and APIs for Android
- Virtual Reality Overview for Developers
- Android Development Essential Training: 4 Working with Data
- Android Development: Retrofit with Kotlin
- Android Development Essential Training: 5 Storage and Databases
- Android Development Essential Training: Distributing Apps with Java
- Android Development Essential Training: Your First App with Kotlin
- Android Development Essential Training: The User Interface with Kotlin
Related learn paths
- Become an Instructional Developer
- Prepare for the CompTIA PenTest+ (PT0-001) Exam
- Prepare for the Google Associate Android Developer Certification
- Software Development Fundamentals
- Prepare for Unity Certification
- Advance Your Skills as a Django Developer
- Become an Android Mobile App Developer
- Become a Java Programmer