mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 08:19:14 +02:00
member is watching.
This commit is contained in:
parent
214d3e04f4
commit
3c09eaf0ad
2 changed files with 5 additions and 2 deletions
|
@ -99,7 +99,7 @@
|
|||
<th>member.is_admin</th>
|
||||
<td>{{ neko.state.member.is_admin }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="ok">
|
||||
<th>member.is_watching</th>
|
||||
<td>{{ neko.state.member.is_watching }}</td>
|
||||
</tr>
|
||||
|
|
|
@ -131,6 +131,9 @@
|
|||
if (!this.video.paused && !play) {
|
||||
this.video.pause()
|
||||
}
|
||||
|
||||
// TODO: check if user has tab focused and send via websocket
|
||||
Vue.set(this.state.member, 'is_watching', play)
|
||||
}
|
||||
|
||||
@Watch('state.video.volume')
|
||||
|
@ -267,7 +270,7 @@
|
|||
Vue.set(this.state.connection, 'webrtc', 'disconnected')
|
||||
this.events.emit('system.webrtc', 'disconnected')
|
||||
// @ts-ignore
|
||||
this.video.src = null
|
||||
if (this.video) this.video.src = null
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue