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

Public Member Functions

web.Response handle (self, web.Request request, Stream stream, str sequence, str part_num)
 
- 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

str render (StreamOutput track)
 

Static Public Attributes

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

Detailed Description

Stream view used only for Chromecast compatibility.

Definition at line 114 of file hls.py.

Member Function Documentation

◆ handle()

web.Response homeassistant.components.stream.hls.HlsMasterPlaylistView.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 138 of file hls.py.

◆ render()

str homeassistant.components.stream.hls.HlsMasterPlaylistView.render ( StreamOutput  track)
static
Render M3U8 file.

Definition at line 122 of file hls.py.

Member Data Documentation

◆ cors_allowed

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

Definition at line 119 of file hls.py.

◆ name

string homeassistant.components.stream.hls.HlsMasterPlaylistView.name = "api:stream:hls:master_playlist"
static

Definition at line 118 of file hls.py.

◆ url

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

Definition at line 117 of file hls.py.


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