a--*_*--m 4 google-chrome google-chrome-extension google-cast chromecast
当用户从 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);
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2272 次 |
| 最近记录: |