android / media-samples

Multiple samples showing the best practices in media APIs on Android (audio, video, etc.).
Apache License 2.0
1.28k stars 741 forks source link

Could not set video URL instead of local video resource id #17

Open jagdishkk1989 opened 6 years ago

jagdishkk1989 commented 6 years ago

I want to set the video url for media player. But its taking video resource id from the raw folder.

Is there any way to set remote video url and play locally.

Could you please add this features as well?

Thanks!

lzls commented 5 years ago

If insterested, you can visit the texture-video-view library module of my VideoPlayer project repository, inside which the TextureVideoView(2) follows the same design concept of this sample's MovieView layout. That project expanded this sample, showing and working much better than this. Here is a convenient link for you: https://github.com/freeze-frames/VideoPlayer/tree/beta