-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Example how to use 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]]; [[OfflineManager shared] prepareAssetWithMediaOptions:options options:selection callback:^(NSError * _Nullable, AssetInfo * _Nullable, PKMediaEntry * _Nullable) { }]; Co-authored-by: Nilit Danan <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters