Sohaib Rahman
Sohaib Rahman

Reputation: 183

How to access the inbuilt video player of the android phone programatically

Whenever we play a normal video through phone or sdcard in android's phone memory, it opens with the inbuilt video player. In my program, I want to play my application's videos through the inbuilt video player. For this I need to access the inbuilt video player. Is there any API to access the video player? I know that we have the VideoView. But it does not have start, stop, pause, forward or rewind button which can be at the best provided by the inbuilt video player. Please provide me a solution. Thank you.

Upvotes: 0

Views: 1866

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006604

Create an ACTION_VIEW Intent, with a Uri pointing to your video, with the appropriate MIME type, and call startActivity() with that Intent.

Upvotes: 1

Related Questions