Dailymotion PHP 流 url 不工作

Dailymotion PHP stream url not working

我已经在我的网站中集成了 PHP Dailymotion ( https://github.com/dailymotion/dailymotion-sdk-php ) 的 SDK。

我已通过此 api(本地和实时)获取了 stream_h264_hq_url。它在本地 Apache 中运行良好,但在实时网站中不起作用。

stream_*_url 字段具有安全限制,如文档中所述 (https://developer.dailymotion.com/documentation#video-stream_h264_hq_url-field):

Without an access token this field contains null, the Dailymotion user associated with the access token must be the owner of the video. This field is rate limited. The returned url is secured: it can only be consumed by the user who made the query and it expires after a certain time.

因此,返回的 url 已签名,因此它只能由执行 API 调用的机器使用。换句话说,只有执行 API 调用的服务器才能读取流。