openvidu-browser: fix RTCIceCandidate and Blob errors

pull/681/head
pabloFuente 2022-01-12 01:36:53 +01:00
parent 16682c5456
commit 4e304b18d4
2 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,7 @@ export class LocalRecorder {
a.style.display = 'none'; a.style.display = 'none';
document.body.appendChild(a); document.body.appendChild(a);
const url = window.URL.createObjectURL(this.blob); const url = window.URL.createObjectURL(<any>this.blob);
a.href = url; a.href = url;
a.download = this.id + '.webm'; a.download = this.id + '.webm';
a.click(); a.click();

View File

@ -1021,6 +1021,7 @@ export class Session extends EventDispatcher {
*/ */
recvIceCandidate(event: { senderConnectionId: string, endpointName: string, sdpMLineIndex: number, sdpMid: string, candidate: string }): void { recvIceCandidate(event: { senderConnectionId: string, endpointName: string, sdpMLineIndex: number, sdpMid: string, candidate: string }): void {
const candidate: RTCIceCandidate = { const candidate: RTCIceCandidate = {
address: null,
candidate: event.candidate, candidate: event.candidate,
sdpMid: event.sdpMid, sdpMid: event.sdpMid,
sdpMLineIndex: event.sdpMLineIndex, sdpMLineIndex: event.sdpMLineIndex,