Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们的接收器将支持视频广告,我想知道是否有办法在播放广告时暂时禁用接收器向所有收听客户端发送广播状态更新。
目前,我们的解决方案是发送“广告开始”和“广告结束”消息,让客户端处理忽略任何即将到来的广播,但如果我们可以禁用它们一起发送,那就太好了。
可以这样做,但需要扩展 RemoteMedia 并至少覆盖那里的 broadcastCurrentStatus() 方法。做你目前正在做的事情可能会更容易。