change(ui): fix skip in assist, fix clientside window ignore

This commit is contained in:
sylenien 2022-09-16 11:37:48 +02:00
parent 9f919d4fea
commit d1be86367a
3 changed files with 16 additions and 14 deletions

View file

@ -93,7 +93,7 @@ export default class Player extends MessageDistributor {
let time = prevTime + diffTime;
const skipInterval = skip && skipIntervals.find((si: Node) => si.contains(time)); // TODO: good skip by messages
const skipInterval = !live && skip && skipIntervals.find((si: Node) => si.contains(time)); // TODO: good skip by messages
if (skipInterval) time = skipInterval.end;
const fmt = super.getFirstMessageTime();

View file

@ -350,11 +350,11 @@
}
</style>
</head>
<body>
<body data-openreplay-hidden>
<div id="remote-control-confirm" class="confirm-window">
<div class="title">The agent is requesting remote control</div>
<div class="actions">
@ -380,7 +380,7 @@
<div class="card shadow">
<div class="drag-area card-header d-flex justify-content-between">
<div class="user-info">
<span>Call with</span>
<span>Call with</span>
<!-- User Name -->
<span id="agent-name" class="person-name fw-light" >Support Agent</span>
</div>
@ -394,7 +394,7 @@
<!-- <p class="text-white m-auto text-center">Starting video...</p> -->
<video id="video-local" autoplay muted></video>
</div>
<div id="remote-stream" class="ratio ratio-4x3 m-0 p-0">
<!-- <p id="remote-stream-placeholder" class="text-white m-auto text-center">Starting video...</p> -->
<video id="video-remote" autoplay></video>
@ -419,8 +419,8 @@
<path d="m9.486 10.607-.748-.748A2 2 0 0 1 6 8v-.878l-1-1V8a3 3 0 0 0 4.486 2.607zm-7.84-9.253 12 12 .708-.708-12-12-.708.708z"/>
</svg>
</i>
</button>
</button>
<!--Add class .off to #video-btn when user stops video -->
<button
href="#"
@ -436,9 +436,9 @@
</svg>
</i>
</button>
</div>
<button id="end-call-btn" href="#" class="btn btn-danger btn-sm text-uppercase" style="margin-right: 8px;">End</button>
</div>
@ -484,7 +484,7 @@
</div>
</div>
</div>
</div>
</div>
</section>
</body>
</html>
</html>

View file

@ -44,7 +44,7 @@ function makeButton(options: ButtonOptions, defaultStyle?: Properties): HTMLButt
}
export default class ConfirmWindow {
private wrapper: HTMLDivElement;
private readonly wrapper: HTMLDivElement;
constructor(options: ConfirmWindowOptions) {
const wrapper = document.createElement('div')
@ -107,6 +107,8 @@ export default class ConfirmWindow {
})
wrapper.appendChild(popup)
wrapper.setAttribute('data-openreplay-hidden', '')
this.wrapper = wrapper
confirmBtn.onclick = () => {