【发布时间】:2020-04-05 12:19:09
【问题描述】:
我正在使用这个React library 来喊一个 JS Blob 对象,但它没有看到发送 Blob。
如果我这样做是为了喊出 Blob 对象,我会在有效负载中得到一个空对象:
console.log('sending', blob); // sending Blob {size: 384, type: "audio/mp3"}
this.props.webrtc.shout('chat', blob);
收到喊叫的peer得到{}
但如果我要这样喊的话:
this.props.webrtc.shout('chat', 123);
然后接收者看到123。
有人知道为什么吗?
【问题讨论】:
标签: reactjs websocket webrtc blob