mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
[feat] update some feature
sync code of fastrtc, add text support through datachannel, fix safari connect problem support chat without camera or mic
This commit is contained in:
@@ -48,6 +48,8 @@ export async function get_video_stream(
|
||||
return navigator.mediaDevices
|
||||
.getUserMedia(constraints)
|
||||
.then((local_stream: MediaStream) => {
|
||||
// local_stream.removeTrack(local_stream.getVideoTracks()[0])
|
||||
// local_stream.addTrack(createSimulatedVideoTrack())
|
||||
set_local_stream(local_stream, video_source);
|
||||
return local_stream;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user