开始编写基于zego的直播模块
This commit is contained in:
@@ -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>
|
||||
50
app/src/main/res/layout/activity_push_video.xml
Normal file
50
app/src/main/res/layout/activity_push_video.xml
Normal 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>
|
||||
@@ -1,3 +1,8 @@
|
||||
<resources>
|
||||
<string name="app_name">MoGoAiCloudSdk</string>
|
||||
|
||||
|
||||
<string name="start">开始直播</string>
|
||||
<string name="stop">停止直播</string>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user