Streaming Youtube Videos

前端 未结 8 1370
太阳男子
太阳男子 2020-11-30 01:53

I am writing an application to play youtube videos using streaming.

First method:

I am getting the RTSP URL to the video using GData APIs. Here is the code t

8条回答
  •  日久生厌
    2020-11-30 02:32

    If you're willing to do the work in a new activity, the following will work on a device but not on the emulator:

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

提交回复
热议问题