Coder Social home page Coder Social logo

Comments (5)

Rychou avatar Rychou commented on June 6, 2024

@JeffesJiang 你好,请问是如何操作复现的呢?

可以提供一下 sdkAppId、roomId、userId、时间点,我排查一下。

from trtc_web.

JeffesJiang avatar JeffesJiang commented on June 6, 2024

@JeffesJiang 你好,请问是如何操作复现的呢?

可以提供一下 sdkAppId、roomId、userId、时间点,我排查一下。

roomid 使用过 7777 和 8888
sdkAppid 1600012148
userid 1和2 双人房间 和 1、2、3 三人房间

updateLoacalVideo muted:true或者publish:false remote端的挂载video的dom下的video元素会被remove updateLoacalVideo muted:false或者publish:true恢复后 remote控制台是接收到对应的事件的但是 挂载video的dom下video元素还是不存在
无法自行恢复

只能在 remote端 监听
REMOTE_VIDEO_UNAVAILABLE 事件 调用 stopRemoteVideo 和
REMOTE_VIDEO_AVAILABLE 事件 调用 startRemoteVideo

from trtc_web.

Rychou avatar Rychou commented on June 6, 2024

@JeffesJiang 你好,这个现象是符合预期的。

你那边简单处理只需要在 REMOTE_VIDEO_AVAILABLE 调用 startRemoteVideo 即可,REMOTE_VIDEO_UNAVAILABLE 里可以不调用 stopRemoteVideo

from trtc_web.

JeffesJiang avatar JeffesJiang commented on June 6, 2024

@JeffesJiang 你好,这个现象是符合预期的。

你那边简单处理只需要在 REMOTE_VIDEO_AVAILABLE 调用 startRemoteVideo 即可,REMOTE_VIDEO_UNAVAILABLE 里可以不调用 stopRemoteVideo

在 REMOTE_VIDEO_AVAILABLE 中调用 startRemoteVideo 第二次就会报错,会提示已存在在,所以还是会需要调用stopRemoteVideo

from trtc_web.

Rychou avatar Rychou commented on June 6, 2024

@JeffesJiang 你好,这个现象是符合预期的。
你那边简单处理只需要在 REMOTE_VIDEO_AVAILABLE 调用 startRemoteVideo 即可,REMOTE_VIDEO_UNAVAILABLE 里可以不调用 stopRemoteVideo

在 REMOTE_VIDEO_AVAILABLE 中调用 startRemoteVideo 第二次就会报错,会提示已存在在,所以还是会需要调用stopRemoteVideo

那是在远端没有取消推流的情况下,重复调用 startRemoteVideo 了吧,如果远端取消推流了,sdk 会自动 stopRemoteVideo。业务侧只需要再下一次 REMOTE_VIDEO_AVAILABLE 时调用 startRemoteVideo 即可

from trtc_web.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.