Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Camera Stream doesn't work (v2.3.0) #688

Closed
radaoggy opened this issue Apr 6, 2021 · 1 comment · Fixed by #692
Closed

Camera Stream doesn't work (v2.3.0) #688

radaoggy opened this issue Apr 6, 2021 · 1 comment · Fixed by #692

Comments

@radaoggy
Copy link

radaoggy commented Apr 6, 2021

On the first page I have a stream from the camera. When I switch to another page and then go back to the first, stream doesn't work. The console in chome shows an error:

hls.js: 4264 Uncaught (in promise) DOMException: The play () request was interrupted by a new load request.

I always have to reload the whole page. It used to work.

This is my setting:

[position: [0, 0],
id: "camera.sub",
type: TYPES.CAMERA_STREAM,
bgSize: "cover",
classes: ["-camera-tile"],
title: "",
width: 3,
height: 2,
state: false,
fullscreen: {
   type: TYPES.CAMERA_STREAM,
   objFit: 'contain',
   id: 'camera.main',
   bufferLength: 5
}]
@rchl
Copy link
Collaborator

rchl commented Apr 6, 2021

Reported an issue upstream video-dev/hls.js#3732

rchl added a commit that referenced this issue Apr 7, 2021
Appears to be a regression in v1 of hls.js. An upstream issue created
at video-dev/hls.js#3732

But I also found similar issue (video-dev/hls.js#2473)
that seems to suggest that it's best to just re-initialize the Hls
instance instead of re-attaching the media so I'll just go with that
for now.

Fixes #688
alphasixtyfive pushed a commit that referenced this issue Apr 7, 2021
* fix(CAMERA_STREAM): stream fails to resume after being suspended

Appears to be a regression in v1 of hls.js. An upstream issue created
at video-dev/hls.js#3732

But I also found similar issue (video-dev/hls.js#2473)
that seems to suggest that it's best to just re-initialize the Hls
instance instead of re-attaching the media so I'll just go with that
for now.

Fixes #688

* revert debugging code

* debug code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants