|
| web.Response | handle (self, web.Request request, Stream stream, str sequence, str part_num) |
| |
| str | render (cls, HlsStreamOutput track) |
| |
| web.StreamResponse | get (self, web.Request request, str token, str sequence="", str part_num="") |
| |
|
| web.Response | bad_request (bool blocking, float target_duration) |
| |
| web.Response | not_found (bool blocking, float target_duration) |
| |
Stream view to serve a M3U8 stream.
Definition at line 159 of file hls.py.
◆ bad_request()
| web.Response homeassistant.components.stream.hls.HlsPlaylistView.bad_request |
( |
bool |
blocking, |
|
|
float |
target_duration |
|
) |
| |
|
static |
Return a HTTP Bad Request response.
Definition at line 236 of file hls.py.
◆ handle()
| web.Response homeassistant.components.stream.hls.HlsPlaylistView.handle |
( |
|
self, |
|
|
web.Request |
request, |
|
|
Stream |
stream, |
|
|
str |
sequence, |
|
|
str
|
part_num |
|
) |
| |
◆ not_found()
| web.Response homeassistant.components.stream.hls.HlsPlaylistView.not_found |
( |
bool |
blocking, |
|
|
float |
target_duration |
|
) |
| |
|
static |
Return a HTTP Not Found response.
Definition at line 244 of file hls.py.
◆ render()
| str homeassistant.components.stream.hls.HlsPlaylistView.render |
( |
|
cls, |
|
|
HlsStreamOutput |
track |
|
) |
| |
Render HLS playlist file.
Definition at line 167 of file hls.py.
◆ cors_allowed
| bool homeassistant.components.stream.hls.HlsPlaylistView.cors_allowed = True |
|
static |
◆ name
| string homeassistant.components.stream.hls.HlsPlaylistView.name = "api:stream:hls:playlist" |
|
static |
◆ url
| string homeassistant.components.stream.hls.HlsPlaylistView.url = r"/api/hls/{token:[a-f0-9]+}/playlist.m3u8" |
|
static |
The documentation for this class was generated from the following file:
- core/homeassistant/components/stream/hls.py