Give some documentation on Track events

This commit is contained in:
rlaphoenix 2024-02-10 17:19:48 +00:00
parent 8bf6e4d87e
commit 7be24a130d
1 changed files with 7 additions and 1 deletions

View File

@ -51,11 +51,17 @@ class Track:
self.edition: str = edition
self.extra: Any = extra or {} # allow anything for extra, but default to a dict
# events
# TODO: Currently using OnFoo event naming, change to just segment_filter
self.OnSegmentFilter: Optional[Callable] = None
# TODO: This should realistically be before decryption
# Called after the Track has been fully downloaded and decrypted
self.OnDownloaded: Optional[Callable] = None
# Called after the Track or a Segment has been decrypted
self.OnDecrypted: Optional[Callable] = None
# Called after the Track has been repackaged
self.OnRepacked: Optional[Callable] = None
# Called before the Track is multiplexed
self.OnMultiplex: Optional[Callable] = None
# should only be set internally