Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.hls.HlsPlaylistView Class Reference
Inheritance diagram for homeassistant.components.stream.hls.HlsPlaylistView:
[legend]
Collaboration diagram for homeassistant.components.stream.hls.HlsPlaylistView:
[legend]

Public Member Functions

web.Response handle (self, web.Request request, Stream stream, str sequence, str part_num)
 
str render (cls, HlsStreamOutput track)
 
- Public Member Functions inherited from homeassistant.components.stream.core.StreamView
web.StreamResponse get (self, web.Request request, str token, str sequence="", str part_num="")
 

Static Public Member Functions

web.Response bad_request (bool blocking, float target_duration)
 
web.Response not_found (bool blocking, float target_duration)
 

Static Public Attributes

bool cors_allowed = True
 
string name = "api:stream:hls:playlist"
 
string url = r"/api/hls/{token:[a-f0-9]+}/playlist.m3u8"
 
- Static Public Attributes inherited from homeassistant.components.stream.core.StreamView
bool requires_auth = False
 

Detailed Description

Stream view to serve a M3U8 stream.

Definition at line 159 of file hls.py.

Member Function Documentation

◆ 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 
)
Return m3u8 playlist.

Reimplemented from homeassistant.components.stream.core.StreamView.

Definition at line 251 of file hls.py.

◆ 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.

Member Data Documentation

◆ cors_allowed

bool homeassistant.components.stream.hls.HlsPlaylistView.cors_allowed = True
static

Definition at line 164 of file hls.py.

◆ name

string homeassistant.components.stream.hls.HlsPlaylistView.name = "api:stream:hls:playlist"
static

Definition at line 163 of file hls.py.

◆ url

string homeassistant.components.stream.hls.HlsPlaylistView.url = r"/api/hls/{token:[a-f0-9]+}/playlist.m3u8"
static

Definition at line 162 of file hls.py.


The documentation for this class was generated from the following file: