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

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

Loading…
Cancel
Save