如何从youtube播放列表中获取时间价值 [英] how to get time value from youtube playlist
问题描述
我想从 youtube 播放列表中获取所有视频时间...
i want to get all videos time from youtube playlist...
检查这个链接..
http://www.youtube.com/watch?v=ilJP08u8jq0&list=PLCK7NnIZXn7g3gvXsTDFpLkihKOIkNKuj
在此链接上有 3 个视频.它的所有视频时长都是 52:42..
on this link have 3 videos. its all videos duration is 52:42..
1 > 18:39
2 > 18:20
3 > 15:43
All duration > 52:42
所以我想从 youtube 播放列表中获取所有持续时间.. 但那个时间想要从 php 中获取...那么如何从 php 获取 youtube 播放列表所有视频的时间值
.. 感谢 read.plz帮我做.
so i want to get all duration from youtube playlist.. but that time want from php... so how to get youtube playlist all videos time value from php
.. thanks for read.plz help me for do it.
推荐答案
我会查看 通过 API 获取 YouTube 用户的完整播放列表
特别是,您可以使用此 zend 函数获取播放列表提要的所有可用条目:
In particular, you can get all available entries for a playlist feed using this zend function:
$playlistListFeed = $yt->retrieveAllEntriesForFeed($yt->getPlaylistListFeed($userName));
然后您可以遍历提要的每个条目并总结时间.
You could then iterate through each entry of the feed and sum the time.
这篇关于如何从youtube播放列表中获取时间价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!