开始编写基于zego的直播模块

This commit is contained in:
董宏宇
2021-02-03 16:33:05 +08:00
parent 9009c9b75a
commit cb4b3e4bb5
20 changed files with 707 additions and 105 deletions

View File

@@ -65,6 +65,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="路况服务测试" />
<Button
android:id="@+id/btnJumpPushLive"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="直播SDK推流测试" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- <com.baidu.rtc.RTCVideoView-->
<!-- android:id="@+id/rtcView"-->
<!-- android:layout_width="860px"-->
<!-- android:layout_height="540px"-->
<!-- android:layout_below="@+id/surfaceView" />-->
<!-- <com.baidu.rtc.RTCVideoView-->
<!-- android:id="@+id/rtcRemoteView"-->
<!-- android:layout_width="900px"-->
<!-- android:layout_height="540px"-->
<!-- android:layout_alignParentRight="true"-->
<!-- android:layout_below="@+id/surfaceView" />-->
<LinearLayout
android:id="@+id/flTestPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<ToggleButton
android:id="@+id/btnLive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textOff="@string/start"
android:textOn="@string/stop" />
<ToggleButton
android:id="@+id/btnSaveFile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textOff="开始录制"
android:textOn="停止录制" />
</LinearLayout>
</RelativeLayout>

View File

@@ -1,3 +1,8 @@
<resources>
<string name="app_name">MoGoAiCloudSdk</string>
<string name="start">开始直播</string>
<string name="stop">停止直播</string>
</resources>