Skip to content

Commit

Permalink
Merge pull request volcengine#3 from volcengine/dev
Browse files Browse the repository at this point in the history
update vod cache size
  • Loading branch information
wangzy-volc committed Apr 26, 2022
2 parents 0dd4232 + 26459cf commit 6caa506
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion VOLCDemo/VOLCDemo/Base/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,14 @@ - (void)applicationDidBecomeActive:(UIApplication *)application {
- (void)initTTSDKWithOptions:(NSDictionary *)launchOptions {
NSString *appId = @"229234";

/// Initialize TTSDK, configure Lisence ,this step cannot be skipped !!!!!
/// initialize ttsdk, configure Lisence ,this step cannot be skipped !!!!!
TTSDKConfiguration *configuration = [TTSDKConfiguration defaultConfigurationWithAppID:appId licenseName:@"VOLC-PlayerDemo"];

/// config vod cache size
TTSDKVodConfiguration *vodConfig = [[TTSDKVodConfiguration alloc] init];
vodConfig.cacheMaxSize = 100 * 1024 *1024;
configuration.vodConfiguration = vodConfig;

#if DEBUG
/// add lisence observer,suggest debug open
[self addLicenseObserver];
Expand Down

0 comments on commit 6caa506

Please sign in to comment.