Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.hls.HlsInitView Class Reference
Inheritance diagram for homeassistant.components.stream.hls.HlsInitView:
[legend]
Collaboration diagram for homeassistant.components.stream.hls.HlsInitView:
[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 Attributes

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

Detailed Description

Stream view to serve HLS init.mp4.

Definition at line 337 of file hls.py.

Member Function Documentation

◆ handle()

web.Response homeassistant.components.stream.hls.HlsInitView.handle (   self,
web.Request  request,
Stream  stream,
str  sequence,
str   part_num 
)
Return init.mp4.

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

Definition at line 344 of file hls.py.

Member Data Documentation

◆ cors_allowed

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

Definition at line 342 of file hls.py.

◆ name

string homeassistant.components.stream.hls.HlsInitView.name = "api:stream:hls:init"
static

Definition at line 341 of file hls.py.

◆ url

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

Definition at line 340 of file hls.py.


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