类型 函数 返回值 无 版本 发行版 2024.3703 关键词 按需资源、onDemandResources、setDownloadPriority 另请参阅 onDemandResources.request() onDemandResources.getDownloadPriority() onDemandResources.*
如果您想一次下载多个资源(标签),可以使用此函数设置应该首先下载的优先级。
onDemandResources.setDownloadPriority( tag, priority )
String。 设置下载优先级的标签。
Number 或 String。 如果传递数字,请使用 0.0
至 1.0
范围内的值,其中 1.0
是最高下载优先级"urgent"
)"urgent"
表明是最大下载优先级。
使用 "urgent"
优先级可能会导致帧速率下降。通常,在关键时间点,不应该设置紧急下载优先级。