IChannelHandler
由频道集群提供商提供的处理程序接口。应处理频道集群支持的命令。
方法
handleChangeChannel()
handleChangeChannel(
matchChannelIdentifierStr):Promise<IChangeChannelResponse>
使用给定的频道标识符,将当前流变更为特定频道。
参数
matchChannelIdentifierStr
string
为识别目标频道而匹配的用户输入字符串。目前,该字符串不用区分大小写就能完全匹配频道标识符。未来,该字符串还将包含AffiliateCallSign、CallSign、Name、Number等值。
返回值
Promise<IChangeChannelResponse>
详情
根据ChannelDescriptor中提供的标识符,调到某个频道。
handleChangeChannelByNumber()
handleChangeChannelByNumber(
majorNumber,minorNumber):Promise<IChangeChannelResponse>
根据给定的频道主号码和次号码,将当前流变更为特定频道。
参数
majorNumber
number
频道应变更的主号码值(ATSC格式)。
minorNumber
number
频道应变更的次号码值(ATSC格式)。
返回值
Promise<IChangeChannelResponse>
详情
handleChangeChannelByNumber目前未使用,实施并使用handleChangeChannel,而不是处理调频。
handleSkipChannel()
handleSkipChannel(
count):Promise<IChangeChannelResponse>
从当前频道跳过指定数量的频道,并流式传输结果频道。
参数
count
number
增加(计数为正)或减少(计数为负)当前频道的步骤数。
返回值
Promise<IChangeChannelResponse>
Last updated: 2025年10月2日

