build: 更新项目至studio panda

This commit is contained in:
2026-06-02 10:59:18 +08:00
parent 9e602a6cd1
commit 3e0e9f3259
10 changed files with 730 additions and 39 deletions

View File

@@ -1,26 +1,57 @@
<?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">
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".activity.WebRTCScreenCaptureActivity">
<Button
android:id="@+id/btn_start_push"
<data>
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="开始推流" />
android:layout_height="match_parent"
android:orientation="vertical">
<!-- WebRTC本地预览显示采集的屏幕内容 -->
<org.webrtc.SurfaceViewRenderer
android:id="@+id/local_render"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_weight="1" />
<TextView
android:id="@+id/tv_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="等待连接..."
android:textColor="#000000"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextureView
android:id="@+id/textureView"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_weight="1" />
<Button
android:id="@+id/bt_connect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="连接websocket"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>
<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>
</layout>