mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
webrtc.js: Fix a small typo
Fix a typo caused by referencing the event struct after it's already been destructured Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6547>
This commit is contained in:
parent
b57944efda
commit
362a73218b
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ function createCall() {
|
|||
peer_connection.ontrack = ({track, streams}) => {
|
||||
console.log("ontrack triggered");
|
||||
var videoElem = getVideoElement();
|
||||
if (event.track.kind === 'audio')
|
||||
if (track.kind === 'audio')
|
||||
videoElem.style.display = 'none';
|
||||
|
||||
videoElem.srcObject = streams[0];
|
||||
|
|
Loading…
Reference in a new issue