修改了接口调用
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user