start unmuted on reconnects #65.
This commit is contained in:
parent
93cb227a1f
commit
305271916c
@ -69,6 +69,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms.
|
|||||||
- Added HEALTHCHECK to Dockerfile.
|
- Added HEALTHCHECK to Dockerfile.
|
||||||
- Arguments in broadcast pipeline are optional, not positional and can be repeated `{url} {device} {display}`.
|
- Arguments in broadcast pipeline are optional, not positional and can be repeated `{url} {device} {display}`.
|
||||||
- Chat messages are dense, when repeated, they are joined together.
|
- Chat messages are dense, when repeated, they are joined together.
|
||||||
|
- Start unmuted on reconnects.
|
||||||
|
|
||||||
### Roadmap & TODOs
|
### Roadmap & TODOs
|
||||||
- Catch errors from gst pipeline, tell user if broadcast failed.
|
- Catch errors from gst pipeline, tell user if broadcast failed.
|
||||||
|
@ -217,6 +217,7 @@
|
|||||||
private observer = new ResizeObserver(this.onResise.bind(this))
|
private observer = new ResizeObserver(this.onResise.bind(this))
|
||||||
private focused = false
|
private focused = false
|
||||||
private fullscreen = false
|
private fullscreen = false
|
||||||
|
private startsMuted = true
|
||||||
|
|
||||||
get admin() {
|
get admin() {
|
||||||
return this.$accessor.user.admin
|
return this.$accessor.user.admin
|
||||||
@ -336,6 +337,7 @@
|
|||||||
onMutedChanged(muted: boolean) {
|
onMutedChanged(muted: boolean) {
|
||||||
if (this._video) {
|
if (this._video) {
|
||||||
this._video.muted = muted
|
this._video.muted = muted
|
||||||
|
this.startsMuted = muted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,7 +387,7 @@
|
|||||||
this._video.addEventListener('canplaythrough', () => {
|
this._video.addEventListener('canplaythrough', () => {
|
||||||
this.$accessor.video.setPlayable(true)
|
this.$accessor.video.setPlayable(true)
|
||||||
if (this.autoplay) {
|
if (this.autoplay) {
|
||||||
if (!document.hasFocus() || !this.$accessor.active) {
|
if (this.startsMuted && (!document.hasFocus() || !this.$accessor.active)) {
|
||||||
this.$accessor.video.setMuted(true)
|
this.$accessor.video.setMuted(true)
|
||||||
this._video.muted = true
|
this._video.muted = true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user