Skip to content

Commit 7a4bc7a

Browse files
author
kongdywang
committed
1. Add DRM playback API
2. update to 12.2.1
1 parent ce5f329 commit 7a4bc7a

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

Flutter/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,17 @@ Professional 分支:Android & iOS 端集成TXLiteAVSDK_Professional lastest版
258258
- Pre-download supports httpHeader
259259
- Supports encrypted playback of MP4
260260
- Added support for HEVC playback downgrade
261+
- Fix other known issues.
262+
263+
#### Version: 12.2.1 2024.12.27
264+
265+
##### Features:
266+
267+
- set Android TXLiteAVSDK_Player to 12.2.0.15072,tag:release_player_v12.2.1
268+
- set iOS TXLiteAVSDK_Player to 12.2.16956, tag:release_player_v12.2.1
269+
- Fix the issue that picture-in-picture cannot be launched on some Android systems.
270+
- Fix the issue of abnormal use after cold startup on some Android systems.
271+
- Fix the issue that there is no subtitle callback without setting config on iOS.
272+
- Fix the issue that there is no callback in some cases of downloading and pre-downloading.
273+
- Add DRM playback API.
261274
- Fix other known issues.

Flutter/CI/buildVersionOnMac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildLog() {
55
}
66

77
inputVersion=$1
8-
export VERSION_NAME="12.2.0"
8+
export VERSION_NAME="12.2.1"
99
if [ -n "$inputVersion" ]; then
1010
VERSION_NAME=$inputVersion
1111
fi

Flutter/android/config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rootProject.ext {
44
supportSdkVersion = "26.0.1"
55
minSdkVersion = 19
66
targetSdkVersion = 28
7-
playerVersion = '12.2.0'
7+
playerVersion = '12.2.1'
88
compat = "androidx.appcompat:appcompat:1.6.1"
99

1010
/**
@@ -14,5 +14,5 @@ rootProject.ext {
1414
Professional SDK: liteavSdk="com.tencent.liteav:LiteAVSDK_Professional:latest.release"
1515
If you want to specify the SDK version(eg 11.7.0.13946), use: liteavSdk="com.tencent.liteav:LiteAVSDK_Player:11.7.0.13946"
1616
*/
17-
liteavSdk="com.tencent.liteav:LiteAVSDK_Player:12.2.0.15065"
17+
liteavSdk="com.tencent.liteav:LiteAVSDK_Player:12.2.0.15072"
1818
}

Flutter/ios/super_player.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'super_player'
7-
s.version = '12.2.0'
7+
s.version = '12.2.1'
88
s.summary = 'player plugin.'
99
s.description = <<-DESC
1010
player plugin.
@@ -26,7 +26,7 @@ player plugin.
2626
# Player_Premium SDK: s.dependency 'TXLiteAVSDK_Player_Premium'
2727
# Professional SDK: s.dependency 'TXLiteAVSDK_Professional'
2828
# If you want to specify the SDK version(eg 11.6.15041), use: s.dependency 'TXLiteAVSDK_Player','11.6.15041'
29-
s.dependency 'TXLiteAVSDK_Player','12.2.16945'
29+
s.dependency 'TXLiteAVSDK_Player','12.2.16956'
3030

3131
# Flutter.framework does not contain a i386 slice.
3232
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

Flutter/lib/Core/common/common_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
part of SuperPlayer;
33

44
abstract class FPlayerPckInfo {
5-
static const String PLAYER_VERSION = "12.2.0";
5+
static const String PLAYER_VERSION = "12.2.1";
66
}

Flutter/lib/Core/txvodplayer_controller.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ class TXVodPlayerController extends ChangeNotifier implements ValueListenable<TX
136136
..psign = params.psign);
137137
}
138138

139+
Future<void> startPlayDrm(TXPlayerDrmBuilder drmBuilder) async {
140+
if (_isNeedDisposed) return;
141+
await _initPlayer.future;
142+
_changeState(TXPlayerState.buffering);
143+
printVersionInfo();
144+
await _vodPlayerApi.startPlayDrm(drmBuilder.toMsg());
145+
}
146+
139147
/// The shared texture ID is a unique integer value that is used to identify a texture,
140148
/// and it is passed back after the texture is prepared in the native layer.
141149
/// By listening to this value, the shared texture can be set where needed.

Flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: super_player
22
description: player plugin.
3-
version: 12.2.0
3+
version: 12.2.1
44
author:
55
homepage:
66

0 commit comments

Comments
 (0)