修改了接口调用

This commit is contained in:
董宏宇
2021-02-07 14:16:37 +08:00
parent ef446d84d5
commit b6e0acb9c1
3 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入要查看的车机SN"
android:text="F803EB2046PZD00273"
android:text="X1020210128F803EB2046PZD00149"
android:textColor="#FFFF"
app:layout_constraintBottom_toTopOf="@+id/liveToggleBtn"
app:layout_constraintEnd_toEndOf="parent"

View File

@@ -49,7 +49,7 @@ public class RequestLiveManager {
public void requestVehicleHeadLive(Application application, String liveSn, IRequestLiveListener requestLiveListener) {
Gson gson = new Gson();
LivePush livePush = new LivePush(liveSn, "1", "C_1");
LivePush livePush = new LivePush(liveSn, "0", "C_1");
String sn = MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn();
Map<String, String> map = new HashMap<>();
map.put("sn", sn);

View File

@@ -63,6 +63,7 @@ public class TrafficLiveManager implements ILiveProgressListener {
requestLiveManager.requestVehicleHeadLive(application, liveSn, new IRequestLiveListener() {
@Override
public void onSuccess() {
Logger.i(TAG, "主播开始直播了");
String sn = MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn();
mStreamId = MoGoLiveManager.STREAM_ID_PREFIX + liveSn;
MoGoLiveManager.getInstance().init(application, null);