Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds HLS camera stream support #1047

Merged
merged 3 commits into from
Feb 26, 2023

Conversation

pedrolamas
Copy link
Member

Adds HLS stream support via hls.js.

To test it, just add a new camera, select "HLS Stream", and set the URL to "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8"

Using `import Hls from 'hls.js' caused this issue, which I fixed by adding a simple alias to vite.config.js

As hls.js is an extra 370Kb and will be used as an "opt-in" kind of feature, I've made sure that it dynamically imported to keep the bundle size lower.


On a side note, I really dislike how the whole CameraItem.vue is... there is way too much stuff in there and it is becoming quite unmanageable, so once this gets merged, I will attempt to refactor each streamer into separate Vue files.

@pedrolamas pedrolamas added the FR - Enhancement New feature or request label Feb 25, 2023
@pedrolamas pedrolamas added this to the 1.24 milestone Feb 25, 2023
@pedrolamas pedrolamas merged commit 57f37ef into fluidd-core:develop Feb 26, 2023
@pedrolamas pedrolamas deleted the pedrolamas/hls branch February 26, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR - Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants