mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
test(cctv): reproduce default finite-video loop state
This commit is contained in:
1 parent
2bf2742ca0
commit
694e062ad4
1 file changed
+1
-1
@@ -72,7 +72,7 @@ test('native HLS releases its client lease without response-header access', asyn
|
|||||||
test('finite video feeds retain looping while live HLS does not loop', async () => {
|
test('finite video feeds retain looping while live HLS does not loop', async () => {
|
||||||
for (const feedType of ['mp4', 'webm', 'hls']) {
|
for (const feedType of ['mp4', 'webm', 'hls']) {
|
||||||
const source = video();
|
const source = video();
|
||||||
source.loop = true;
|
source.loop = feedType === 'hls';
|
||||||
source.canPlayType = () => 'probably';
|
source.canPlayType = () => 'probably';
|
||||||
let imports = 0;
|
let imports = 0;
|
||||||
const playback = attachCctvVideo(source, '/api/cctv/media/a', feedType, {
|
const playback = attachCctvVideo(source, '/api/cctv/media/a', feedType, {
|
||||||
|
|||||||
Reference in new issue
Block a user