onDemandResources.setDownloadPriority()

类型 函数
返回值
版本 发行版 2024.3703
关键词 按需资源、onDemandResources、setDownloadPriority
另请参阅 onDemandResources.request()
onDemandResources.getDownloadPriority()
onDemandResources.*

概览

如果您想一次下载多个资源(标签),可以使用此函数设置应该首先下载的优先级。

语法

onDemandResources.setDownloadPriority( tag, priority )
tag (必填)

String 设置下载优先级的标签。

priority (必填)

NumberString 如果传递数字,请使用 0.01.0 范围内的值,其中 1.0 是最高下载优先级(跟随 "urgent". 传递字符串 "urgent" 表明是最大下载优先级。

问题

使用 "urgent" 优先级可能会导致帧速率下降。通常,在关键时间点,不应该设置紧急下载优先级。时间敏感点。