Learn how to play audio and video from your Android app. Find out how to support video and audio playback using either the system widgets or Google ExoPlayer.
Overview
Syllabus
Android Multimedia
- Create media rich apps with Android
- What you should know
- Why your app needs audio and video
- Two ways to play: Android or ExoPlayer
- Media locations: Local or streaming
- Playing audio and video
- AudioManager overview
- Set the volume
- Audio focus
- Abandoning audio focus
- Internet and WakeLock permissions
- Setup
- States
- Loading files
- Playing media
- SoundPool overview
- Load files with SoundPool
- Play files with SoundPool
- Hooking UI controls to SoundPool
- VideoView overview
- Create a VideoView UI
- Playing and pausing VideoView
- MediaSession overview
- MediaSession example usage
- Channels
- Notifications
- Background services
- Create MediaPlayer
- Create stop and pause method
- Create play method
- Audio formats
- Video formats
- Overview and library setup
- Initialization
- Load and play media
- Create video and audio player
- Create media sources
- Set up players
- Next steps
Taught by
Kevin Moore