57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<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">
|
||
|
||
<data>
|
||
|
||
</data>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical">
|
||
|
||
<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" />
|
||
|
||
<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" />
|
||
|
||
<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> |