Video app overview
Stay organized with collections
Save and categorize content based on your preferences.
A typical video player always displays its controls and video content while it's
running; it can't operate in the background or without a UI. Therefore, it's
appropriate to build your app as a single activity containing the UI, a player,
a media session, and a media controller:

- Building a videoplayer activity
- How to create an activity that contains a media session and a media controller.
- Media session callbacks
- Describes how the media session callback methods manage the media session and other app components like notifications and broadcast receivers.
- Compatible media transcoding
- Set up transcoding behavior, such as whether to automatically convert
videos to AVC (H.264) when they are opened by an app that doesn't support
the initial encoding format.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]