0

I've got a video player that can be launched via an intent from the usual applications (gallery, file explorer etc.) but I dont know how to use the video Uri launched from the intent. Ive taken a look at this Get filename and path from URI from mediastore but it makes no sense to me

At the moment im hard coding setVideoUri() to a video in my phone but I obviously want this to be able to be for any video in the phone, not just one I set.

If someone can help me out I'd appreciate it. Thanks

Community
  • 1
  • 1
Timmo
  • 2,266
  • 4
  • 34
  • 54

1 Answers1

0

I dont know how to use the video Uri launched from the intent

Pass getIntent().getData() to setVideoURI() on the VideoView, assuming (based on tags) that you are using a VideoView.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491