增加webrtc,增加显示屏幕信息
This commit is contained in:
26
app/src/main/res/layout/activity_webrtc_screen_capture.xml
Normal file
26
app/src/main/res/layout/activity_webrtc_screen_capture.xml
Normal 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>
|
||||
Reference in New Issue
Block a user