How to get video RTSP link with Youtube API V3?

前端 未结 2 1988
遥遥无期
遥遥无期 2021-02-04 18:38

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,

相关标签:
2条回答
  • 2021-02-04 19:28

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

    0 讨论(0)
  • 2021-02-04 19: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.

    0 讨论(0)
提交回复
热议问题