Releases: kaltura/playkit-ios-dtg
Releases · kaltura/playkit-ios-dtg
3.20.0
3.18.0
3.17.0
Changes from 3.16.0
Example how to use it in Objective-C:
OTTMediaOptions *options = [[OTTMediaOptions alloc] init];
DTGSelectionOptions *selection = [[DTGSelectionOptions alloc] init];
[selection setMinVideoBitrate:1000000 forCodec:TrackCodecAvc1];
[selection setMinVideoBitrate:2000000 forCodec:TrackCodecMp4a];
[selection setMinVideoWidth:1280];
[selection setMinVideoHeight:720];
[selection setAllTextLanguages:YES];
[selection setAllAudioLanguages:YES];
NSArray *codecs = [NSArray arrayWithObjects:
[NSNumber numberWithInteger:TrackCodecAvc1],
[NSNumber numberWithInteger:TrackCodecHevc], nil];
[selection setPreferredVideoCodecs:codecs];
[selection setPreferredAudioCodecs:[NSArray arrayWithObjects:[NSNumber numberWithInteger:TrackCodecAc3], nil]];
// OTT Player
[[OfflineManager shared] prepareAssetWithMediaOptions:options
options:selection
callback:^(NSError *error, AssetInfo *info, PKMediaEntry *entry) {
}];
// Basic Player
PKMediaSource *source = [[PKMediaSource alloc] init:@"ID"
contentUrl:[NSURL URLWithString:@"http://your-playback.com/url.m3u8"]
mimeType:nil
drmData:nil
mediaFormat:MediaFormatHls];
PKMediaEntry *entry = [[PKMediaEntry alloc] init:@"ID"
sources:[NSArray arrayWithObjects:source, nil]
duration:-1];
[[OfflineManager shared] prepareAssetWithMediaEntry:entry
options:selection
callback:^(NSError *error, AssetInfo *info) {
}];
DTGSelectionOptions
func setMinVideoBitrate(_ codec: TrackCodec, _ bitrate: Int) -> Self
deprecated now usefunc setMinVideoBitrate(_ bitrate: Int, forCodec codec: TrackCodec) -> Self
Cocoapods install
pod 'DownloadToGo', '~> 3.17.0'
3.16.0
3.15.0
3.14.1
3.14.0
3.13.0
Changes from 3.12.1
- Updated iOS deployment target to 10.0.
- Add better progress estimate (#62)
- Support iOS 14 Xcode 12 (#66)
- Updated RealmSwift to v10.2.0.
Added "Push Notifications" as a capability to the sample, this is needed for Realm. - Updated M3U8Kit to v1.0.0.
- Updated PlayKitUtils dependency to v0.5.
- Updated RealmSwift to v10.2.0.
Cocoapods install
pod 'DownloadToGo', '~> 3.13.0'