Skip to content

Commit

Permalink
others: upgrade ttsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzy-volc committed Sep 1, 2021
1 parent 8e13a0d commit abc9b7e
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 79 deletions.
74 changes: 17 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,73 +61,33 @@ pod 'TTSDK', 'x.x.x.x', :subspecs => [ # 推荐使用最新稳定版,具体版

## ChangeLog

### Version 基础版:1.18.2.4-standard;高级版:1.18.2.4-premium(推荐使用) #
2021.07.26

New Features:
license过期后,支持回退至系统播放器
支持vid播放方式下的h265/h264的软硬解灵活配置
蒙版弹幕支持以dir_url方式设置蒙版url
支持音视频下载缓存至手机本地的功能
其它bugfix


### Version 基础版:1.18.1.3-standard;高级版:1.18.1.3-premium #
2021.07.12

New Features:
支持对接火山引擎的httpdns服务
倍速播放支持3倍速
静态库解决符号库冲突的问题
其它bugfix


### Version 基础版:1.17.2.3-standard;高级版:1.17.2.3-premium(推荐使用)
2021.06.28
#### Version 基础版:1.19.2.1-standard;高级版:1.19.2.1-premium(推荐使用)
2021.08.23

New Features:
1. 支持外挂字幕,支持全链路方案对接和纯客户端方案对接
2. 支持dir_url播放方式下的h265/h264的软硬解灵活配置
3. 上传SDK支持素材上传
bugfix

### Version 基础版:1.17.1.2-standard;高级版:1.17.1.2-premium
2021.06.15
#### Version 基础版:1.19.1.1-standard;高级版:1.19.1.1-premium
2021.08.10

New Features:
1. 提供 httpdns 接口
2. 提供获取实时下载网速接口
3. FFmpeg 支持本地 m3u8 中的 http 协议播放


### Version 基础版:1.16.2.2-standard;高级版:1.16.2.2-premium
2021.05.31

Bug Fix:
1. 修复蒙版弹幕相关bug


### Version 基础版:1.16.1.5-standard;高级版:1.16.1.5-premium
2021.05.17

New Features:
1. 支持蒙版弹幕

logcat支持查看license 2.0相关信息
和VESDK、CVSDK冲突依赖的问题修复 (boringssl)
支持画中画小窗播放
其它bugfix

### Version 基础版:1.15.2.2-standard;高级版:1.15.2.2-premium
2021.04.27
#### Version 基础版:1.18.2.4-standard;高级版:1.18.2.4-premium #
2021.07.26

New Features:
1. h265 接口改造

license过期后,支持回退至系统播放器
支持vid播放方式下的h265/h264的软硬解灵活配置
蒙版弹幕支持以dir_url方式设置蒙版url
支持音视频下载缓存至手机本地的功能
其它bugfix

### Version 基础版:1.14.0.9-standard;高级版:1.14.0.9-premium
2021.04.13

New Features:
1. SDK 进行基础版、高级版和增值服务拆分,各版的功能说明请参考点播 SDK 介绍。
2. License 鉴权全面升级为 License 2.0,支持 License 变更/续期和在线更新.
3. License 2.0 介绍请参考应用管理;
4. 新用户 SDK 集成请参考集成准备 ;
5. 老用户 SDK 及 License 升级请参考License 2.0 升级说明。
- [更多版本](https://www.volcengine.com/docs/4/66438)


Binary file removed TTSDK/TTSDKFramework-1.18.2.4-premium-ta.zip
Binary file not shown.
Binary file removed TTSDK/TTSDKFramework-1.18.2.4-standard-ta.zip
Binary file not shown.
Binary file added TTSDK/TTSDKFramework-1.19.2.1-premium-ta.zip
Binary file not shown.
Binary file added TTSDK/TTSDKFramework-1.19.2.1-standard-ta.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion VOLCDemo/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source 'https://github.com/volcengine/volcengine-specs.git'
platform :ios, '9.0'

target 'VOLCDemo' do
pod 'TTSDK', '1.18.2.4-premium', :subspecs => [
pod 'TTSDK', '1.19.2.1-premium', :subspecs => [
'Player',
]
pod 'Masonry'
Expand Down
2 changes: 2 additions & 0 deletions VOLCDemo/VOLCDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@
"$(PROJECT_DIR)/VOLCDemo/Utils/OneKit/StartUp",
"$(PROJECT_DIR)/VOLCDemo/Utils/OneKit/BaseKit",
);
MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bytedance.volc.voddemo;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -706,6 +707,7 @@
"$(PROJECT_DIR)/VOLCDemo/Utils/OneKit/StartUp",
"$(PROJECT_DIR)/VOLCDemo/Utils/OneKit/BaseKit",
);
MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bytedance.volc.voddemo;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
30 changes: 10 additions & 20 deletions VOLCDemo/VOLCDemo/Base/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
#endif


#define kAppId @"229234"
#define kAppName @"ToB_Demo"
#define kChannel @"test_channel"


FOUNDATION_EXTERN NSString * const TTLicenseNotificationLicenseDidAdd;
FOUNDATION_EXTERN NSString * const TTLicenseNotificationLicenseInfoDidUpdate;;
FOUNDATION_EXTERN NSString * const TTLicenseNotificationLicenseResultKey;
Expand Down Expand Up @@ -63,21 +68,16 @@ - (void)applicationDidBecomeActive:(UIApplication *)application {
#pragma mark - TTSDK init

- (void)initTTSDKWithOptions:(NSDictionary *)launchOptions {
NSString *appId = @"229234";
NSString *appName = @"ToB_Demo";
NSString *appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
NSString *bundleId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"];
NSString *channelName = @"test_channel"; // channel name

/// Initialize TTSDK, configure Lisence ,this step cannot be skipped !!!!!
/// TTSDK default config app log, appLog depends on RangersAppLog SDK.
/// If your APP has been connected to RangersAppLog SDK before, please set "configuration.shouldInitAppLog = NO".
TTSDKConfiguration *configuration = [TTSDKConfiguration defaultConfigurationWithAppID:appId];
configuration.appName = appName;
configuration.channel = channelName;
configuration.bundleID = bundleId;
TTSDKConfiguration *configuration = [TTSDKConfiguration defaultConfigurationWithAppID:kAppId];
configuration.appName = kAppName;
configuration.channel = kChannel;
configuration.shouldInitAppLog = YES;
configuration.serviceVendor = TTSDKServiceVendorCN;
configuration.bundleID = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"];
configuration.appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
configuration.licenseFilePath = [NSBundle.mainBundle pathForResource:@"VOLC-PlayerDemo.lic" ofType:nil];
#if DEBUG
/// add lisence observer,suggest debug open
Expand All @@ -86,16 +86,6 @@ - (void)initTTSDKWithOptions:(NSDictionary *)launchOptions {
[TTSDKManager startWithConfiguration:configuration];


/// Initialize TTVideoEngine
NSDictionary *appInfo = @{TTVideoEngineAID: [NSNumber numberWithLongLong:[appId longLongValue]],
TTVideoEngineAppName:appName,
TTVideoEngineChannel:channelName,
TTVideoEngineAppVersion:appVersion,
TTVideoEngineServiceVendor:@(TTVideoEngineServiceVendorCN)
};
[TTVideoEngine configureAppInfo:appInfo];


/// Configuration data loading module MDL (Media Data Loader)
/// When TTVideoEngine play video, MDL to download video data and manage video cache. MDL will act as a proxy for the player's I/O module. When there is no buffer, it can play while buffering, reducing playback pauses. When there is a cache, use the cache to start broadcasting to improve the speed of starting broadcasting.
/// Note: Please configure and enable the MDL module before creating the TTVideoEngine instance.
Expand Down
2 changes: 1 addition & 1 deletion VOLCDemo/VOLCDemo/Base/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down

0 comments on commit abc9b7e

Please sign in to comment.