How to get video RTSP link with Youtube API V3?

2019-03-11 11:02发布

I used to get it normally with V2 but what's the alternative in API V3 ? if not available, is there any hack to do it ? eg. guess the URL ?

Note : V2 is Deprecated now, so i can't depend on it .

2条回答
We Are One
2楼-- · 2019-03-11 11:24

API v3 doesn't return RTSP, your best bet is to implement iFrame player and it will stream the appropriate format for you.

查看更多
你好瞎i
3楼-- · 2019-03-11 11:31

Yes, this is another of the great advantages of v3 API. Other benefits from this API:

  • No more multiple screenshots to choose from
  • No more video duration; must be requested in second query
  • Video duration encrypted in ISO 8601 format to ensure you can't can convert it to seconds

The lack of RTSP value is just another one. I bet that in API v4 they'll probably hide the video title as well, to ensure the API is entirely useless.

查看更多
登录 后发表回答