Trần Yến Nhi
Member
How do I make a video player app for Android?
Answer
Building a video player activity
Answer
Building a video player activity
- Create and initialize the media session.
- Set the media session callback.
- Set the media session’s media button receiver to null so that a media button event won’t restart the player when it is not visible. This only affects Android 5.0 (API level 21) and higher devices.
- Create and initialize the media controller.