TT#50350 Call: Fix video element issue in Safari

Change-Id: I458a8905e73303c2d81664f300e9002312dcb675
changes/82/26482/1
Hans-Peter Herzog 6 years ago
parent d16320e567
commit e33e3851f4

@ -12,7 +12,6 @@
/> />
</div> </div>
<video <video
v-show="!loading && hasVideo"
ref="media" ref="media"
autoplay autoplay
playsinline playsinline
@ -41,6 +40,7 @@
loading: true, loading: true,
} }
}, },
components: { components: {
QSpinnerDots, QSpinnerDots,
QIcon QIcon
@ -69,14 +69,26 @@
} }
}, },
watch: { watch: {
stream() { stream(stream) {
if(_.isObject(this.stream) && this.currentStream !== this.stream) { if(stream !== null && stream !== this.currentStream) {
this.loading = true; this.loading = true;
this.assignStream(this.stream); this.assignStream(stream);
}
else {
this.currentStream = null;
if(this.$refs.media.srcObject) {
this.$refs.media.srcObject = null;
}
else if(this.$refs.media.mozSrcObject) {
this.$refs.media.mozSrcObject = null;
}
else {
this.$refs.media.src = null;
}
} }
}, },
muted() { muted(muted) {
this.$refs.media.muted = this.muted; this.$refs.media.muted = muted;
} }
}, },
computed: { computed: {

@ -139,7 +139,6 @@
/> />
</div> </div>
<csc-media <csc-media
v-show="hasRemoteVideo || minimized"
:muted="!remoteVolumeEnabled" :muted="!remoteVolumeEnabled"
:stream="remoteMediaStream" :stream="remoteMediaStream"
:fit="remoteMediaFit" :fit="remoteMediaFit"

Loading…
Cancel
Save