Coder Social home page Coder Social logo

qnweb-rtc-demo's Introduction

QNWebRTC Demo

Configuration

Use pnpm (suggested).

pnpm env use --global lts # 18.14.0
pnpm i
pnpm dev

For Windows, set the shell to git bash.

pnpm config set script-shell "C:\\Program Files\\Git\\bin\\bash.exe"

qnweb-rtc-demo's People

Contributors

ryuujo1573 avatar

Stargazers

glows777 avatar

Watchers

 avatar

qnweb-rtc-demo's Issues

[Bug] 连续点击(音)视频开关,会出现发布muted的轨道的情况

当前 track 生命周期

  1. 创建:按需创建
  2. 发布:即时发布
  3. 取消发布:由用户关闭媒体触发
  4. 销毁:即时销毁

用户对媒体设备的开关操作发生在2~3之间时,先setMute(设备捕获on,媒体传输off),经过防抖时间(预设500ms)后对媒体 track 进行取消发布。

优化后预期表现

用户连续点击视频的开关,可以实现视频从画面到黑幕的快速切换(setMute 的效果),并在停止连续点击时,根据当前状态决定是否取消发布

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.