mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Final web lint fixes
This commit is contained in:
parent
8e1e063540
commit
c1bf7e8278
@ -562,7 +562,7 @@ class VideoRTC extends HTMLElement {
|
|||||||
video2.playsInline = true;
|
video2.playsInline = true;
|
||||||
video2.muted = true;
|
video2.muted = true;
|
||||||
|
|
||||||
video2.addEventListener('loadeddata', (ev) => {
|
video2.addEventListener('loadeddata', (_) => {
|
||||||
if (!context) {
|
if (!context) {
|
||||||
canvas.width = video2.videoWidth;
|
canvas.width = video2.videoWidth;
|
||||||
canvas.height = video2.videoHeight;
|
canvas.height = video2.videoHeight;
|
||||||
@ -576,7 +576,7 @@ class VideoRTC extends HTMLElement {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.ondata = (data) => {
|
this.ondata = (data) => {
|
||||||
video2.src = 'data:video/mp4;base64,' + VideoRTC.btoa(data);
|
video2.src = `data:video/mp4;base64,${VideoRTC.btoa(data)}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.send({ type: 'mp4', value: this.codecs('mp4') });
|
this.send({ type: 'mp4', value: this.codecs('mp4') });
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user