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

后端 未结 3 1148
面向向阳花
面向向阳花 2020-12-17 18:23

I have tried to play a youtube video by its URL by my android program. I have used setVideoURI(uri); function also to set URI, as suggested by other POSTs in stackoverflow

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 18:39

    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);                          
    

提交回复
热议问题