方法
handleChangeChannel()
handleChangeChannel(matchChannelIdentifierStr:使用给定的频道标识符,将当前流变更为特定频道。 用于通过ChannelDescriptor中提供的标识符调谐到某个频道。string):Promise<IChangeChannelResponse>
参数
matchChannelIdentifierStr
string
为识别目标频道而匹配的用户输入字符串。目前,该字符串不用区分大小写就能完全匹配频道标识符。将来,该字符串还可包含诸如AffiliateCallSign、CallSign、Name、Number等值。
返回值
Promise<IChangeChannelResponse>
这是一个Promise,会在成功处理请求时正常完成;在请求失败时,则会返回OperationError并拒绝执行。
handleChangeChannelByNumber()
handleChangeChannelByNumber(majorNumber:根据给定的频道主号码和次号码,将当前流变更为特定频道。 handleChangeChannelByNumber目前未使用,实施并使用handleChangeChannel,而不是处理频道调谐。number, minorNumber:number):Promise<IChangeChannelResponse>
参数
majorNumber
number
频道应变更的主号码值(ATSC格式)。
minorNumber
number
频道应变更的次号码值(ATSC格式)。
返回值
Promise<IChangeChannelResponse>
这是一个Promise,会在成功处理请求时正常完成;在请求失败时,则会返回OperationError并拒绝执行。
handleSkipChannel()
handleSkipChannel(count:从当前频道跳过指定数量的频道,并流式传输结果频道。number):Promise<IChangeChannelResponse>
参数
count
number
增加(计数为正)或减少(计数为负)当前频道的步骤数。
返回值
Promise<IChangeChannelResponse>
这是一个Promise,会在成功处理请求时正常完成;在请求失败时,则会返回OperationError并拒绝执行。
