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

Public Member Functions

web.StreamResponse 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:segment"
 
string url = r"/api/hls/{token:[a-f0-9]+}/segment/{sequence:\d+}.m4s"
 
- Static Public Attributes inherited from homeassistant.components.stream.core.StreamView
bool requires_auth = False
 

Detailed Description

Stream view to serve a HLS fmp4 segment.

Definition at line 399 of file hls.py.

Member Function Documentation

◆ handle()

web.StreamResponse homeassistant.components.stream.hls.HlsSegmentView.handle (   self,
web.Request  request,
Stream  stream,
str  sequence,
str   part_num 
)
Handle segments.

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

Definition at line 406 of file hls.py.

Member Data Documentation

◆ cors_allowed

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

Definition at line 404 of file hls.py.

◆ name

string homeassistant.components.stream.hls.HlsSegmentView.name = "api:stream:hls:segment"
static

Definition at line 403 of file hls.py.

◆ url

string homeassistant.components.stream.hls.HlsSegmentView.url = r"/api/hls/{token:[a-f0-9]+}/segment/{sequence:\d+}.m4s"
static

Definition at line 402 of file hls.py.


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