类:NetworkRequestInfo

构造函数

NetworkRequestInfo

new NetworkRequestInfo()

属性

内容

nullable Uint8Array

请求的内容。这可用于修改许可 请求正文。

标头

对象

一个对象,其中包含您想要在 标头中发送的属性。

shakaRequestContext

nullable 对象

定义有关请求的上下文数据,直接基于: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.RequestContext。

shakaRequestInfo

nullable 对象

特定于 Shaka 的请求信息,直接基于: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.Request。

timeoutInterval

nullable 数字

网络请求超时时间(以毫秒为单位)。

网址

nullable 字符串

所请求的网址。

withCredentials

布尔值

如果设置为 true,则表示应使用凭据(例如 Cookie 或授权标头)发出 CORS Access-Control 请求。