gpt4 book ai didi

YouTube API : Get the quality of a video via the API?

转载 作者:行者123 更新时间:2023-12-02 11:02:37 25 4
gpt4 key购买 nike

有什么方法可以判断视频何时已通过 API 以最高分辨率完全编码?

据我所知,YouTube API 提供 'state' of a video (处理、限制、删除、拒绝和失败)。但是,我无法判断 API 是否还提供视频的编码质量(240p、360p、720i 等...)。

有人知道如何获取这些信息吗?

最佳答案

直接取自docs :

player.getPlaybackQuality():String

This function retrieves the actual video quality of the current video. It returns undefined if there is no current video. Possible return values are highres, hd1080, hd720, large, medium and small.

关于YouTube API : Get the quality of a video via the API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7957383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com