![]() |
libgpac
Documentation of the core library of GPAC
|
DASH custom algo Upon successful binding to the dashin filter, the object will be assigned a list member called groups
, containing the declared group for the active period.
More...
Public Member Functions | |
def | on_period_reset (self, reset_type) |
Callback (optional) called upon a period reset. More... | |
def | on_new_group (self, group) |
Callback (optional) called when a new group (adaptation set) is created. More... | |
def | on_rate_adaptation (self, group, base_group, force_low_complexity, stats) |
Callback (mandatory) called at the end of the segment download to perform rate adaptation. More... | |
def | on_download_monitor (self, group, stats) |
Callback (optional) called on regular basis during a segment download. More... | |
DASH custom algo Upon successful binding to the dashin filter, the object will be assigned a list member called groups
, containing the declared group for the active period.
def python.libgpac.libgpac.DASHCustomAlgorithm.on_period_reset | ( | self, | |
reset_type | |||
) |
Callback (optional) called upon a period reset.
reset_type | indicate the type of period reset. Values can be:
|
def python.libgpac.libgpac.DASHCustomAlgorithm.on_new_group | ( | self, | |
group | |||
) |
Callback (optional) called when a new group (adaptation set) is created.
group | the newly created DASHGroup |
def python.libgpac.libgpac.DASHCustomAlgorithm.on_rate_adaptation | ( | self, | |
group, | |||
base_group, | |||
force_low_complexity, | |||
stats | |||
) |
Callback (mandatory) called at the end of the segment download to perform rate adaptation.
group | the DASHGroup on which to perform adaptation |
base_group | the associated base DASHGroup (tiling only), or None if no base group |
force_low_complexity | indicates that the client would like a lower complexity (typically because it is dropping frames) |
stats | the DASHGroupStatistics for the downloaded segment |
def python.libgpac.libgpac.DASHCustomAlgorithm.on_download_monitor | ( | self, | |
group, | |||
stats | |||
) |
Callback (optional) called on regular basis during a segment download.
group | the DASHGroup associated with the current download |
stats | the DASHGroupDownloadStatistics for the download |
-1
to continue download-2
to abort download but without retrying to downloading the same segment at lower quality