yqritc / Android-ScalableVideoView

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more
Apache License 2.0
1.09k stars 223 forks source link

How to play network video? #42

Open cuixiaodong opened 6 years ago

cuixiaodong commented 6 years ago

Now join the network video direct black screen。。。

AndroidDeveloperLB commented 6 years ago

You just use something like that:

videoView.setDataSource("https://www.sample-videos.com/video/mkv/720/big_buck_bunny_720p_1mb.mkv")

And you have to have Internet permission in the manifest, of course:

<uses-permission android:name="android.permission.INTERNET"/>