Browse Source

#154

pull/174/head
648540858 3 years ago
parent
commit
69734af3ba
  1. 2
      src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
  2. 8
      web_src/static/js/ZLMRTCClient.js

2
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java

@ -261,7 +261,7 @@ public class PlayServiceImpl implements IPlayService {
WVPResult wvpResult = new WVPResult();
wvpResult.setCode(0);
wvpResult.setMsg("sucess");
wvpResult.setMsg("success");
wvpResult.setData(streamInfo);
msg.setData(wvpResult);

8
web_src/static/js/ZLMRTCClient.js

@ -7337,7 +7337,7 @@ var ZLMRTCClient = (function (exports) {
let ret = response.data; //JSON.parse(response.data);
if (ret.code != 0) {
// mean failed for offer/anwser exchange
// mean failed for offer/anwser exchange
this.dispatch(Events$1.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, ret);
return;
}
@ -7347,7 +7347,7 @@ var ZLMRTCClient = (function (exports) {
anwser.type = 'answer';
log(this.TAG, 'answer:', ret.sdp);
this.pc.setRemoteDescription(anwser).then(() => {
log(this.TAG, 'set remote sucess');
log(this.TAG, 'set remote success');
}).catch(e => {
error(this.TAG, e);
});
@ -7440,7 +7440,7 @@ var ZLMRTCClient = (function (exports) {
let ret = response.data; //JSON.parse(response.data);
if (ret.code != 0) {
// mean failed for offer/anwser exchange
// mean failed for offer/anwser exchange
this.dispatch(Events$1.WEBRTC_OFFER_ANWSER_EXCHANGE_FAILED, ret);
return;
}
@ -7450,7 +7450,7 @@ var ZLMRTCClient = (function (exports) {
anwser.type = 'answer';
log(this.TAG, 'answer:', ret.sdp);
this.pc.setRemoteDescription(anwser).then(() => {
log(this.TAG, 'set remote sucess');
log(this.TAG, 'set remote success');
}).catch(e => {
error(this.TAG, e);
});

Loading…
Cancel
Save