mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +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}) => {
|
peer_connection.ontrack = ({track, streams}) => {
|
||||||
console.log("ontrack triggered");
|
console.log("ontrack triggered");
|
||||||
var videoElem = getVideoElement();
|
var videoElem = getVideoElement();
|
||||||
if (event.track.kind === 'audio')
|
if (track.kind === 'audio')
|
||||||
videoElem.style.display = 'none';
|
videoElem.style.display = 'none';
|
||||||
|
|
||||||
videoElem.srcObject = streams[0];
|
videoElem.srcObject = streams[0];
|
||||||
|
|
Loading…
Reference in a new issue