### Initialize TTSDK with AppID and License (Objective-C) Source: https://github.com/volcengine/vevoddemo-ios/blob/main/README.md Initializes the Volcengine TTSDK (Video on Demand SDK) using provided AppID and License. This step is crucial for the SDK to function correctly. It also configures the player's cache size, setting it to 300MB by default. ```objectivec - (void)initTTSDK { /// appid 和 license 不能为空,请到控制台申请后设置继续使用 /// licesne 和 bundle identifier 一一对应, NSString *appId = @""; NSString *licenseName = @""; /// initialize ttsdk, configure Liscene ,this step cannot be skipped !!!!! TTSDKConfiguration *configuration = [TTSDKConfiguration defaultConfigurationWithAppID:appId licenseName:licenseName]; /// 播放器CacheSize,默认100M,建议设置 300M TTSDKVodConfiguration *vodConfig = [[TTSDKVodConfiguration alloc] init]; vodConfig.cacheMaxSize = 300 * 1024 * 1024; // 300M configuration.vodConfiguration = vodConfig; [TTSDKManager startWithConfiguration:configuration]; } ``` -------------------------------- ### CocoaPods Integration for TTSDKFramework (Podfile) Source: https://github.com/volcengine/vevoddemo-ios/blob/main/README.md Specifies the dependencies required for integrating the Volcengine TTSDK (Video on Demand SDK) using CocoaPods. It includes adding the necessary sources and defining the TTSDKFramework pod with the 'Player-SR' subspec. This ensures the player capabilities are correctly included. ```ruby source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/volcengine/volcengine-specs.git' platform :ios, '11.0' target 'VOLCDemo' do #这里需要明确指定使用 subspecs => Player-SR #可在 ChangeLog 获取版本号,推荐使用最新版本 pod 'TTSDKFramework', 'x.x.x.x-premium', :subspecs => ['Player-SR'] end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.