Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.worker.TimestampValidator Class Reference

Public Member Functions

None __init__ (self, int inv_video_time_base, int inv_audio_time_base)
 
bool is_valid (self, av.Packet packet)
 

Private Attributes

 _max_dts_gap
 
 _missing_dts
 

Detailed Description

Validate ordering of timestamps for packets in a stream.

Definition at line 443 of file worker.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.stream.worker.TimestampValidator.__init__ (   self,
int  inv_video_time_base,
int  inv_audio_time_base 
)
Initialize the TimestampValidator.

Definition at line 446 of file worker.py.

Member Function Documentation

◆ is_valid()

bool homeassistant.components.stream.worker.TimestampValidator.is_valid (   self,
av.Packet  packet 
)
Validate the packet timestamp based on ordering within the stream.

Definition at line 462 of file worker.py.

Member Data Documentation

◆ _max_dts_gap

homeassistant.components.stream.worker.TimestampValidator._max_dts_gap
private

Definition at line 458 of file worker.py.

◆ _missing_dts

homeassistant.components.stream.worker.TimestampValidator._missing_dts
private

Definition at line 453 of file worker.py.


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