-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
SUGGESTION: Add more details to the cams.m3u8 file #1414
Comments
Note that the in the M3U8 file, the channel tags (description of the channel) is actually a comment because the line starts with a Standard TagsThe documented M3U8 standard tags that Channels DVR uses are here:
For my hard-coded example above: Channels DVR ExtensionsChannels DVR also supports a bunch of extensions to the tags documented here:
In my example above I've set: I also set the |
Looks like this might be a reasonable replacement for the m3u8.html template
I added Cam to the tags, *** subsequent review show that |
At worst, we can massage @app.route("/cams.m3u8")
@auth_required
def iptv_playlist():
"""
Generate an m3u8 playlist with all enabled cameras.
"""
cameras = web_ui.format_streams(wb.streams.get_all_cam_info())
hostname = env_bool("DOMAIN", urlparse(request.root_url).hostname or "localhost")
resp = make_response(render_template("m3u8.html", cameras=cameras, hostname=hostname))
resp.headers.set("content-type", "application/x-mpegURL")
return resp Also, could technically use |
We could insert a line (at line 141) in the "web_ui" : (config.WEB_UI or f"http://{hostname}:5000"), |
I'm trying to add all my Wyze Bridge-exposed cameras as a source in my Channels DVR for easy remote access. I discovered the
cams.m3u8
endpoint which looks like a good starting pointCreating a source in Channels DVR at Settings/Sources/Add Source/Custom Channels with a source type of
HLS
and a URL of http://home.example.com:5000/cams.m3u8 results in a UI like this in Channels DVR's Live TV view.This lacks a bit of umph :)
So I used a
Text
style custom channel definition like:Which causes the current thumbnails and and names to look a lot nicer
Now obviously I can do this manually... but as I add other cameras I would have to revisit this.
Since it appears the cams.m3u8 endpoint is driven by a template file, it should be relatively easy to upgrade the output to include the other parameters that make the Channels DVR listing look so much better. They should be properties available already on the
camera
object when rendering the template or could be hard-coded.I suspect I could easily make the template changes, but I'm deployed inside a docker container in Home Assistant, so not sure how to go about making that happen and test. I could blindly submit a PR for the suggested template change but don't know how to make a test of that :(
The text was updated successfully, but these errors were encountered: