add screencast to connection state.

This commit is contained in:
Miroslav Šedivý 2021-07-14 14:30:55 +02:00
parent 15a8b3908e
commit 28e6c25f4b
4 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
this._log.debug('EVENT.SYSTEM_INIT')
Vue.set(this._state, 'session_id', conf.session_id)
Vue.set(this._state.control, 'implicit_hosting', conf.implicit_hosting)
Vue.set(this._state.connection, 'screencast', conf.screencast_enabled)
Vue.set(this._state.connection.webrtc, 'videos', conf.webrtc.videos)
for (const id in conf.sessions) {

View File

@ -107,6 +107,7 @@
videos: [],
auto: true,
},
screencast: false,
type: 'none',
},
video: {

View File

@ -21,6 +21,7 @@ export interface SystemInit {
screen_size: ScreenSize
sessions: Record<string, SessionData>
implicit_hosting: boolean
screencast_enabled: boolean
webrtc: SystemWebRTC
}

View File

@ -15,7 +15,8 @@ export default interface State {
export interface Connection {
status: 'disconnected' | 'connecting' | 'connected'
webrtc: WebRTC
type: 'webrtc' | 'fallback' | 'none'
screencast: boolean
type: 'webrtc' | 'screencast' | 'none'
}
export interface WebRTC {