| | |
| | | |
| | | WVPResult wvpResult = new WVPResult(); |
| | | wvpResult.setCode(0); |
| | | wvpResult.setMsg("sucess"); |
| | | wvpResult.setMsg("success"); |
| | | wvpResult.setData(streamInfo); |
| | | msg.setData(wvpResult); |
| | | |
| | |
| | | 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); |
| | | }); |
| | |
| | | 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); |
| | | }); |