“ Chrome发送器应用程序中,自创建迭代器以来,地图已更改”

问题描述 投票:1回答:1

我看到此错误,我不确定它来自哪里。我在Chrome中使用的是Cast v3 sdk,调用堆栈包含cast_sender.js onMessage函数。我相信这是在接收方发出broadcastStatus媒体消息后发生的。

有人在Web控制台中看到此错误消息:"The map has changed since the iterator was created"

chromecast google-cast google-cast-sdk
1个回答
0
投票

发生在我下面的代码中:

session.addUpdateListener(function listener (isAlive) { 
    // This is what causes the error
    session.removeUpdateListener(listener);
});
session.setReceiverMuted(
    !session.receiver.volume.muted, 
    function () { }, 
    function (err) { }
);

仅当我有session.removeUpdateListener(listener);时发生我猜想我删除了收听者并不高兴。

也许对您来说是一样的事情?

© www.soinside.com 2019 - 2024. All rights reserved.