fix: Remove bare method call for mp4 in go2rtc (#2727)

- Closes: #2721
This commit is contained in:
Dermot Duffy
2026-08-29 14:40:56 -07:00
committed by GitHub
parent 82b7effba3
commit c9290fc6be
2 changed files with 26 additions and 1 deletions
@@ -937,7 +937,10 @@ export class VideoRTC extends HTMLElement {
video2.src = 'data:video/mp4;base64,' + VideoRTC.btoa(data);
};
this.send({ type: 'mp4', value: this.codecs(this.video.canPlayType) });
this.send({
type: 'mp4',
value: this.codecs((type) => this.video.canPlayType(type)),
});
}
static btoa(buffer) {