问题描述
我有一个 YouTube 直播活动.我可以使用 YouTube IFrame Player API 播放视频.我想知道是否有任何方法可以找到视频是现场活动视频还是常规上传的视频.我需要这些信息来设计我的控件.
I have a YouTube Live Event. I am able to play the video using the YouTube IFrame Player API. I want to know if there is any way that I can find if the video is a Live event video or a regular uploaded video. I need this information for designing my controls.
推荐答案
(目前)您可以做到这一点的唯一方法是使用 youtube 后端 api.根据视频 ID 获取有关视频的数据,并且在响应中您有一个 snippet.liveBroadcastContent 属性,该属性可以是 live、none 或即将到来的.
The only way you can do this (currently) is with youtube backend api.
Get data about the video based on its id and in the response you have a property snippet.liveBroadcastContent which is either live, none, or upcoming.
这篇关于检查 YouTube 视频是直播还是上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)