Tencent-RTC / TRTC_Web

High-quality WebRTC SDK
https://trtc.io/
107 stars 55 forks source link

VIDEO_PLAY_STATE_CHANGED 一直mute unmute #123

Open mok-cp opened 1 month ago

mok-cp commented 1 month ago

image

当我在听 TRTC.EVENT.VIDEO_PLAY_STATE_CHANGED 的时候,一直得到无限次mute, unmute

trtc.on(TRTC.EVENT.VIDEO_PLAY_STATE_CHANGED, event => {
  console.log(`${event.userId} ${event.streamType} video player is ${event.state} because of ${event.reason}`);
});
Rychou commented 1 month ago

这种现象是因为解码的数据不足以播放导致的

  1. 是否必现?
  2. 检查下网络是否正常。