推流:
this.livePlayer = uni.createLivePlayerContext(“video-livePlay”);
this.url = url;
this.livePlayer.play();
断流1:
this.livePlayer.stop();
this.url = “rtmp://xxxxxxxxxxxxxxx”;
this.livePlayer = uni.createLivePlayerContext(“video-livePlay”);
断流之后的状态码:
2008 Enable default H264 hardware decoder. ->
2103 Enables network reconnection. ->
…三次2103后
-2301 Failed to reconnect many times. Abandon the connection.
断流2
this.livePlayer.stop();
this.url = “”;
this.livePlayer = uni.createLivePlayerContext(“video-livePlay”);
断流之后的状态码:
2008 Enable default H264 hardware decoder. ->
2001 Connected to server. ->
[3005 tcp channel recv fail, errCode[-3] . ->
2103 Enables network reconnection. ->
2001 Connected to server.] ->
…三次[ ]后
3005 tcp channel recv fail, errCode[-3] . ->
-2301 Failed to reconnect many times. Abandon the connection.
断流3
this.livePlayer.stop();
this.url = “”;
this.livePlayer = null;
断流之后的状态码:
2008 Enable default H264 hardware decoder. ->
2001 Connected to server. ->
[3005 tcp channel recv fail, errCode[-3] . ->
2103 Enables network reconnection. ->
2001 Connected to server.] ->
…三次[ ]后
3005 tcp channel recv fail, errCode[-3] . ->
-2301 Failed to reconnect many times. Abandon the connection.