mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 05:38:31 +00:00
improving the bitrate for scene/directo switching
This commit is contained in:
parent
6521dde49d
commit
cc48729d8a
@ -56,7 +56,7 @@
|
||||
<meta property="twitter:image" content="./media/vdoNinja_logo_full.png" />
|
||||
<meta name="msapplication-TileColor" content="#da532c" />
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
<link rel="stylesheet" href="./main.css?ver=304" />
|
||||
<link rel="stylesheet" href="./main.css?ver=305" />
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/adapter.js"></script>
|
||||
<style id="lightbox-animations" type="text/css"></style>
|
||||
<!-- <link rel="manifest" href="manifest.json" /> -->
|
||||
|
||||
14
lib.js
14
lib.js
@ -3455,6 +3455,8 @@ function hideHomeCheck(){
|
||||
}
|
||||
}
|
||||
|
||||
// toggleQualityDirector(1200, this.dataset.UUID, this)
|
||||
|
||||
function switchModes(state=null){
|
||||
if (state===null){
|
||||
session.switchMode = !session.switchMode;
|
||||
@ -3522,6 +3524,8 @@ function switchModes(state=null){
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
applyQualityDirector();
|
||||
}
|
||||
}
|
||||
|
||||
@ -29445,7 +29449,15 @@ function sendChatMessage(chatMsg = false, bc = false) { // filtered + visual
|
||||
return true;
|
||||
}
|
||||
|
||||
function toggleQualityDirector(bitrate, UUID, ele = null) { // ele is specific to the button in the director's room
|
||||
|
||||
function applyQualityDirector() { // lets revert back to the director's quality settings after viewing the scene
|
||||
var eles = document.querySelectorAll('#guestFeeds button.pressed[data-action-type="change-quality1"],#guestFeeds button.pressed[data-action-type="change-quality2"],#guestFeeds button.pressed[data-action-type="change-quality3"]');
|
||||
eles.forEach(ele =>{
|
||||
ele.click();
|
||||
});
|
||||
}
|
||||
|
||||
function toggleQualityDirector(bitrate, UUID, ele) { // ele is specific to the button in the director's room
|
||||
var eles = ele.parentNode.childNodes;
|
||||
for (var i=0;i<eles.length;i++) {
|
||||
eles[i].className = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user