【发布时间】:2014-03-26 11:37:59
【问题描述】:
当用户从 chrome 扩展中选择“停止投射”时,是否有事件会通知发送方应用?
如果用户选择停止从扩展程序而不是应用程序投射按钮的投射,我的 chrome 发送器应用程序处于不确定状态。
编辑: 这是一些相关的代码:
CastPlayer.prototype.onMediaDiscovered = function (how, mediaSession) {
this.currentMediaSession = mediaSession;
// ...
this.currentMediaSession.addUpdateListener(this.onMediaStatusUpdate.bind(this));
// ...
};
CastPlayer.prototype.onMediaStatusUpdate = function (e) {
console.log(e);
};
【问题讨论】:
标签: google-chrome google-chrome-extension google-cast chromecast