mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
WebRTC congestion control (#24)
* Move congestion control to server * Address MR comments * lint. * bring back webrtc stats sync with state. * update webrtc messages. * set bitrate & video auto for signal request. * clear up bitrate & video_auto. * add bitrate and audio for connect function. * reintroduce server side congestion control if video auto is false. * mov ecode around. * fix default video_auto. * revert bitrate addition. * remove video from signal provide. --------- Co-authored-by: Aleksandar Sukovic <aleksandar.sukovic@gmail.com>
This commit is contained in:
@ -161,20 +161,28 @@
|
||||
<th>connection.webrtc.video</th>
|
||||
<td>{{ neko.state.connection.webrtc.video }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>connection.webrtc.auto</th>
|
||||
<td>
|
||||
<div class="space-between">
|
||||
<span>{{ neko.state.connection.webrtc.auto }}</span>
|
||||
<button @click="neko.setWebRTCVideo(undefined, !neko.state.connection.webrtc.auto)">
|
||||
<i class="fas fa-toggle-on"></i>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">connection.webrtc.videos</th>
|
||||
<td>Total {{ neko.state.connection.webrtc.videos.length }} videos.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<select :value="neko.state.connection.webrtc.video" @input="neko.setWebRTCVideo($event.target.value)">
|
||||
<select :value="neko.state.connection.webrtc.video" @input="neko.setWebRTCVideo($event.target.value, false)">
|
||||
<option v-for="video in neko.state.connection.webrtc.videos" :key="video" :value="video">
|
||||
{{ video }}
|
||||
</option>
|
||||
</select>
|
||||
or
|
||||
<input type="text" v-model="bitrate" style="width: 60px" placeholder="Bitrate" />
|
||||
<button @click="neko.setWebRTCVideo('', Number(bitrate))">Set</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -376,13 +384,15 @@
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
<tr v-else>
|
||||
<th>screen.configurations</th>
|
||||
<td>Session is not admin.</td>
|
||||
<th>screen.sync</th>
|
||||
<td>Session is not admin.</td>
|
||||
</tr>
|
||||
|
||||
<template v-else>
|
||||
<tr>
|
||||
<th>screen.configurations</th>
|
||||
<td rowspan="2" style="vertical-align: middle">Session is not admin.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>screen.sync</th>
|
||||
</tr>
|
||||
</template>
|
||||
<tr>
|
||||
<th>session_id</th>
|
||||
<td>{{ neko.state.session_id }}</td>
|
||||
|
Reference in New Issue
Block a user