(desc)
| 93 | |
| 94 | // resolves with non-trickle description including candidates. |
| 95 | setLocalDescription(desc) { |
| 96 | return this.driver.executeAsyncScript((desc) => { |
| 97 | const callback = arguments[arguments.length - 1]; |
| 98 | |
| 99 | pc.onicecandidate = (event) => { |
| 100 | console.log('candidate', event.candidate); |
| 101 | if (!event.candidate) { |
| 102 | pc.onicecandidate = null; |
| 103 | callback(pc.localDescription); |
| 104 | } |
| 105 | }; |
| 106 | pc.setLocalDescription(desc) |
| 107 | .catch(callback); |
| 108 | }, desc); |
| 109 | } |
| 110 | |
| 111 | // TODO: this implicitly creates video elements, is that deseriable? |
| 112 | setRemoteDescription(desc) { |
no outgoing calls
no test coverage detected