Couldn't open file on client side, trying server side Error in Android

可紊 提交于 2019-11-29 06:13:52
Hardik Joshi

Once you get the You tube url..., Substring the Video_ID from the Url.See the example below i have given.

once you get the rtsp link you can play video in VideoView Here is example.

For example: If this link is the video http://www.youtube.com/watch?v=E43mgXNl0xc

Then E43mgXNl0xc is the Video_ID.

Use this video id to play video in videoview.

Refer these two links:

Link 1

Link 2

Once you get the rtsp link you can play it in VideoView.

Also check my answer Here.

Deepanker Chaudhary

On Android devices, you can use an Intent for Youtube videos:

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=E43mgXNl0xc"));
startActivity(browserIntent);                          

i had the same issue none of the answers worked for me, The issue is that video format is not proper this video worked for me

String vidAddress = "http://www.html5videoplayer.net/videos/toystory.mp4";
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!