mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add screencast to connection state.
This commit is contained in:
parent
15a8b3908e
commit
28e6c25f4b
@ -76,6 +76,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
|||||||
this._log.debug('EVENT.SYSTEM_INIT')
|
this._log.debug('EVENT.SYSTEM_INIT')
|
||||||
Vue.set(this._state, 'session_id', conf.session_id)
|
Vue.set(this._state, 'session_id', conf.session_id)
|
||||||
Vue.set(this._state.control, 'implicit_hosting', conf.implicit_hosting)
|
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)
|
Vue.set(this._state.connection.webrtc, 'videos', conf.webrtc.videos)
|
||||||
|
|
||||||
for (const id in conf.sessions) {
|
for (const id in conf.sessions) {
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
videos: [],
|
videos: [],
|
||||||
auto: true,
|
auto: true,
|
||||||
},
|
},
|
||||||
|
screencast: false,
|
||||||
type: 'none',
|
type: 'none',
|
||||||
},
|
},
|
||||||
video: {
|
video: {
|
||||||
|
@ -21,6 +21,7 @@ export interface SystemInit {
|
|||||||
screen_size: ScreenSize
|
screen_size: ScreenSize
|
||||||
sessions: Record<string, SessionData>
|
sessions: Record<string, SessionData>
|
||||||
implicit_hosting: boolean
|
implicit_hosting: boolean
|
||||||
|
screencast_enabled: boolean
|
||||||
webrtc: SystemWebRTC
|
webrtc: SystemWebRTC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,8 @@ export default interface State {
|
|||||||
export interface Connection {
|
export interface Connection {
|
||||||
status: 'disconnected' | 'connecting' | 'connected'
|
status: 'disconnected' | 'connecting' | 'connected'
|
||||||
webrtc: WebRTC
|
webrtc: WebRTC
|
||||||
type: 'webrtc' | 'fallback' | 'none'
|
screencast: boolean
|
||||||
|
type: 'webrtc' | 'screencast' | 'none'
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebRTC {
|
export interface WebRTC {
|
||||||
|
Loading…
Reference in New Issue
Block a user