diff --git a/backend/gradio_webrtc/webrtc.py b/backend/gradio_webrtc/webrtc.py index 87d7755..9942b9b 100644 --- a/backend/gradio_webrtc/webrtc.py +++ b/backend/gradio_webrtc/webrtc.py @@ -703,7 +703,7 @@ class WebRTC(Component): time_limit: float | None = None, mode: Literal["send-receive", "receive", "send"] = "send-receive", modality: Literal["video", "audio", "audio-video"] = "video", - show_local_video: bool = False, + show_local_video: bool = True, # TODO 先默认打开 rtp_params: dict[str, Any] | None = None, icon: str | None = None, icon_button_color: str | None = None, diff --git a/dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl b/dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl index 5d5cd64..dce71d3 100644 Binary files a/dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl and b/dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl differ diff --git a/update_version.py b/update_version.py index 858c237..7cae91a 100644 --- a/update_version.py +++ b/update_version.py @@ -17,7 +17,7 @@ def check_node_installed(): print("Node.js is not installed or not found in PATH.") return False -def install_wheel(whl_file, force_reinstall=False): +def install_wheel(whl_file, force_reinstall=True): if force_reinstall: subprocess.run(['pip', 'install', '--force-reinstall', whl_file]) print(f"Force reinstallation of {whl_file} successful.")