Releases: kaltura/playkit-dtg-android
Releases · kaltura/playkit-dtg-android
v2.6.16
v2.6.15
v2.6.14
Changes from v2.6.13
Updates
- FEC-11741 | ExoPlayer Upgrade to v2.16.1 (#112)
Playkit Changes: (kaltura/playkit-android#771)
Gradle
implementation 'com.kaltura.dtg:dtglib:2.6.14'
v2.6.13
v2.6.12
v2.6.11
Changes from v2.6.9
New Features
Add ability to select video tracks to download by width/height used by KalturaPlayer OfflineManager (DASH)
Gradle
implementation 'com.kaltura.dtg:dtglib:2.6.11'
v2.6.10
v2.6.9
v2.6.8
v2.6.6
Changes from v2.6.5
New Features
- FEC-10135 | Added support for adding headers for manifest and chunks requests using adapters.
Example:
Map<String,String> headers = new HashMap<>();
headers.put("aaa", "bbb");
headers.put("ccc","ddd");
MediaRequestAdapter mediaAdapter = new MediaRequestAdapter();
mediaAdapter.customHeaders1 = headers;
contentManager.getSettings().downloadRequestAdapter = mediaAdapter;
Map<String,String> chunkheaders = new HashMap<>();
chunkheaders.put("zzz", "xxx");
chunkheaders.put("www","vvv");
ChunkRequestAdapter chunkAdapter = new ChunkRequestAdapter();
chunkAdapter.customHeaders2 = chunkheaders;
contentManager.getSettings().chunksUrlAdapter = chunkAdapter;
static class MediaRequestAdapter implements DownloadRequestParams.Adapter {
public static Map<String,String> customHeaders1;
@Override
public DownloadRequestParams adapt(DownloadRequestParams requestParams) {
if (requestParams == null) {
return null;
}
DownloadRequestParams downloadRequestParams = new DownloadRequestParams(requestParams.url, customHeaders1);
return downloadRequestParams;
}
@Override
public void updateParams(String playSessionId) {
}
}
static class ChunkRequestAdapter implements DownloadRequestParams.Adapter {
public static Map<String,String> customHeaders2;
@Override
public DownloadRequestParams adapt(DownloadRequestParams requestParams) {
if (requestParams == null) {
return null;
}
DownloadRequestParams downloadRequestParams = new DownloadRequestParams(requestParams.url, customHeaders2);
return downloadRequestParams;
}
@Override
public void updateParams(String playSessionId) {
}
}
-
FEC-10618 | Expose API to cancel metadata loading
API
downloadItem.cancelMetadataLoading(item.getId());
Please check our sample. We create Item. This holds an uniqueId for each download.
In order to use
cancelMetadataLoading
API, please pass the same Item id.
Gradle
implementation 'com.kaltura.dtg:dtglib:2.6.6'