|
@@ -59,6 +59,9 @@ export default class JitsiStreamPresenterEffect {
|
59
|
59
|
this._videoElement.autoplay = true;
|
60
|
60
|
this._videoElement.srcObject = videoStream;
|
61
|
61
|
|
|
62
|
+ // autoplay is not enough to start the video on Safari, it's fine to call play() on other platforms as well
|
|
63
|
+ this._videoElement.play();
|
|
64
|
+
|
62
|
65
|
// set the style attribute of the div to make it invisible
|
63
|
66
|
videoDiv.style.display = 'none';
|
64
|
67
|
|
|
@@ -132,6 +135,10 @@ export default class JitsiStreamPresenterEffect {
|
132
|
135
|
this._desktopElement.height = parseInt(height, 10);
|
133
|
136
|
this._desktopElement.autoplay = true;
|
134
|
137
|
this._desktopElement.srcObject = desktopStream;
|
|
138
|
+
|
|
139
|
+ // autoplay is not enough to start the video on Safari, it's fine to call play() on other platforms as well
|
|
140
|
+ this._desktopElement.play();
|
|
141
|
+
|
135
|
142
|
this._canvas.width = parseInt(width, 10);
|
136
|
143
|
this._canvas.height = parseInt(height, 10);
|
137
|
144
|
this._videoFrameTimerWorker = new Worker(timerWorkerScript, { name: 'Presenter effect worker' });
|