Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
apprtcと同じように、オーディオとビデオを含むストリームがあります。ビデオ トラックを停止し、Web カメラが WebRTC から解放され、他のアプリが使用できるように、オーディオ トラックを実行する必要があります。それ、どうやったら出来るの?
私は次のようなことから始めました:
pc.getLocalStreams()[0].getVideoTracks()[0].stop()
ただし、これは機能しません。
これはあなたが求めていることを行うべきだと思います:
stream.getAudioTracks()[0].enabled = false;