![]() |
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 | |
on_period_reset (self, reset_type) | |
Callback (optional) called upon a period reset. | |
on_new_group (self, group) | |
Callback (optional) called when a new group (adaptation set) is created. | |
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. | |
on_download_monitor (self, group, stats) | |
Callback (optional) called on regular basis during a segment download. | |
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.
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:
|
python.libgpac.libgpac.DASHCustomAlgorithm.on_new_group | ( | self, | |
group | |||
) |
Callback (optional) called when a new group (adaptation set) is created.
group | the newly created python.libgpac.libgpac.DASHGroup |
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 python.libgpac.libgpac.DASHGroupStatistics for the downloaded segment |
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