增加webrtc,增加显示屏幕信息

This commit is contained in:
2025-12-24 09:17:19 +08:00
parent c00251ad64
commit 9e602a6cd1
7 changed files with 757 additions and 28 deletions

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/btn_start_push"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="开始推流" />
<!-- WebRTC本地预览显示采集的屏幕内容 -->
<org.webrtc.SurfaceViewRenderer
android:id="@+id/local_render"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_weight="1" />
<TextureView
android:id="@+id/textureView"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_weight="1" />
</LinearLayout>