使用 YouTube 数据 API 修剪视频
问题描述:
我知道您可以使用 youtube.com 界面修剪视频,但我想知道是否可以使用 YouTube 数据 API 来修剪视频.
I understand that you can trim the video using the youtube.com interface but I was wondering if it is possible to use the YouTube Data API to trim the video.
因为我没有用户在我的网站上上传超过 15 秒的视频.
Since I don't user to upload video on my site longer than 15 seconds.
谢谢
答
API 示例(根据 http://www.youtube.com/player_api) 使用 START 和 END 参数进行 TRIM:
http://rawgit.com/tazotodua/several-YOUTUBE-PLAYER-SCRIPTS__with_API/master/example99-CUTTER/index.html
API example (according to http://www.youtube.com/player_api) to TRIM with START and END parameters:
http://rawgit.com/tazotodua/several-YOUTUBE-PLAYER-SCRIPTS__with_API/master/example99-CUTTER/index.html