YouTube/Vimeo API - MP4 files

后端 未结 3 478
Happy的楠姐
Happy的楠姐 2020-12-29 17:33

I think YouTube or Vimeo does not have (even paid) any longer API, that will allow me streaming with use of the progressive download the video files (MP4, MPEG-TS or even FL

3条回答
  •  梦毁少年i
    2020-12-29 18:12

    First of all, according to API 3 Link to video not showing Vimeo is now handling API support here with additional support via Email.

    For a PRO account, here are the steps to accessing MP4 files for your videos on Vimeo using the new V3 API:

    1. Create a new Vimeo app here: https://developer.vimeo.com/apps/new
    2. Once created, click on the oAuth2 button at the top and copy your access token.
    3. Make a GET request to https://api.vimeo.com/videos/VIDEO_ID and add the Header "Authorization : Bearer ACCESS_TOKEN" where VIDEO_ID is the ID in the standard Vimeo URL and ACCESS_TOKEN is the token from #2.

    This will return a "files" key that includes multiple video sizes.

    If you're not a PRO user or are attempting to access files uploaded by other users, this link seems to do the trick: http://player.vimeo.com/v2/video/VIDEO_ID/config. This only works if the video is downloadable.

提交回复
热议问题