![]() |
libgpac
Documentation of the core library of GPAC
|
JSDASHClient API. More...
import"dash_algo.idl";
Public Member Functions | |
attribute void | new_group (JSDASHGroup group) |
attribute void | period_reset (unsigned long reset_type) |
attribute int | rate_adaptation (unsigned long group_idx, unsigned long base_group_idx, Boolean force_lower_complexity, JSDASHStats stats) |
attribute int | download_monitor (unsigned long group_idx, JSDASHDownloadStats stats) |
JSDASHClient API.
The JSDASHClient interface has a single instance exposed to the script under the name "dashin". It implements callbacks from the DASH client. The object can also be bound to a running filter using JSFSFilter.bind
attribute void JSDASHClient::new_group | ( | JSDASHGroup | group | ) |
indicate a new group is being created
group | group being created, can be kept for future use |
attribute void JSDASHClient::period_reset | ( | unsigned long | reset_type | ) |
indicate the period has changed
reset_type | indicates the type of reset:
|
attribute int JSDASHClient::rate_adaptation | ( | unsigned long | group_idx, |
unsigned long | base_group_idx, | ||
Boolean | force_lower_complexity, | ||
JSDASHStats | stats | ||
) |
perform rate adaptation on the given group (AdaptationSet in DASH, corresponds to one adaptable media)
group_idx | index of group on which to perform adaptation |
base_group_idx | index of associated base group (usually same as group, differs in tiling mode), |
force_lower_complexity | set to true if the dash client would like a lower complexity |
stats | current statistics for the group JSDASHStats |
attribute int JSDASHClient::download_monitor | ( | unsigned long | group_idx, |
JSDASHDownloadStats | stats | ||
) |
monitor download of the current segment in a group
group_idx | index of group on which to perform adaptation |
stats | current download statistics for the group JSDASHDownloadStats |
-1
to continue download-2
to abort download but without retrying to download the same segment at lower quality