提交 6c5fa77a authored 作者: kongdywang's avatar kongdywang

1.fix the issue where getDownloadInfo does not return isResourceBroken

2.when adjusting the volume of UI components, the iOS end no longer seizes the audio focus 3.fix some logical issues with UI components
上级 d3359dfe
#### Version: 12.9.1 2025.12.04
##### Features:
- set Android TXLiteAVSDK to 12.9.0.19478
- set iOS TXLiteAVSDK to 12.9.20085
- fix the issue where getDownloadInfo does not return isResourceBroken
- when adjusting the volume of UI components, the iOS end no longer seizes the audio focus
- fix some logical issues with UI components
- Fix known issue
#### Version: 12.9.0 2025.11.13
##### Features:
......
......@@ -5,7 +5,7 @@ buildLog() {
}
inputVersion=$1
export VERSION_NAME="12.9.0"
export VERSION_NAME="12.9.1"
if [ -n "$inputVersion" ]; then
VERSION_NAME=$inputVersion
fi
......
......@@ -4,7 +4,7 @@ rootProject.ext {
supportSdkVersion = "26.0.1"
minSdkVersion = 19
targetSdkVersion = 28
playerVersion = "12.9.0"
playerVersion = "12.9.1"
compat = "androidx.appcompat:appcompat:1.6.1"
/**
......@@ -14,5 +14,5 @@ rootProject.ext {
Professional SDK: liteavSdk="com.tencent.liteav:LiteAVSDK_Professional:latest.release"
If you want to specify the SDK version(eg 11.7.0.13946), use: liteavSdk="com.tencent.liteav:LiteAVSDK_Player:11.7.0.13946"
*/
liteavSdk="com.tencent.liteav:LiteAVSDK_Player:12.9.0.19467"
liteavSdk="com.tencent.liteav:LiteAVSDK_Player:12.9.0.19478"
}
\ No newline at end of file
......@@ -202,7 +202,7 @@ public class FTXTextureRender {
private void mergerMatrix() {
// reset
Matrix.setIdentityM(mResultMatrix, 0);
Matrix.multiplyMM(mResultMatrix, 0, rotationMatrix, 0, projectionMatrix, 0);
Matrix.multiplyMM(mResultMatrix, 0, projectionMatrix, 0, rotationMatrix , 0);
}
public void cleanDrawCache() {
......
......@@ -26,7 +26,7 @@ class _DemoTXVodPlayerState extends State<DemoTXVodPlayer> with WidgetsBindingOb
int _volume = 100;
List _supportedBitrates = [];
int _curBitrateIndex = 0;
String _url = "http://1500005830.vod2.myqcloud.com/43843ec0vodtranscq1500005830/48d0f1f9387702299774251236/adp.10.m3u8";
String _url = "https://1500005830.vod2.myqcloud.com/43843ec0vodtranscq1500005830/48d0f1f9387702299774251236/adp.10.m3u8";
TXPlayInfoParams? _videoParams;
int _appId = 0;
String _fileId = "";
......
......@@ -16,7 +16,7 @@ dependencies:
flutter:
sdk: flutter
flutter_easyloading: ^3.0.5
flutter_easyloading: 3.0.5
super_player:
# When depending on this package from a real application you should use:
......@@ -33,6 +33,10 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
dependency_overrides:
# force override flutter_easyloading dep
flutter_spinkit: 5.1.0
dev_dependencies:
flutter_test:
sdk: flutter
......
......@@ -42,8 +42,6 @@ NSString *const NOTIFCATION_NAME = @"SystemVolumeDidChange";
{
// `showsVolumeSlider` needs to be set to YES.
volumeView.showsVolumeSlider = YES;
// Get audio focus.
[audioSession setActive:true error:nil];
[_volumeSlider setValue:value animated:NO];
[_volumeSlider sendActionsForControlEvents:UIControlEventTouchUpInside];
[_volumeSlider sizeToFit];
......@@ -51,8 +49,6 @@ NSString *const NOTIFCATION_NAME = @"SystemVolumeDidChange";
- (void)setVolumeUIVisible:(BOOL)volumeUIVisible
{
// Get audio focus.
[audioSession setActive:true error:nil];
volumeView.hidden = !volumeUIVisible;
}
......
......@@ -199,6 +199,7 @@
msg.playableDuration = @(info.playableDuration);
msg.size = @(info.size);
msg.downloadSize = @(info.downloadSize);
msg.isResourceBroken = @(info.isResourceBroken);
if(nil != info.url && info.url.length > 0) {
msg.url = info.url;
}
......
......@@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'super_player'
s.version = '12.9.0'
s.version = '12.9.1'
s.summary = 'The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).'
s.description = <<-DESC
player plugin.
......@@ -26,7 +26,7 @@ player plugin.
# Player_Premium SDK: s.dependency 'TXLiteAVSDK_Player_Premium'
# Professional SDK: s.dependency 'TXLiteAVSDK_Professional'
# If you want to specify the SDK version(eg 11.6.15041), use: s.dependency 'TXLiteAVSDK_Player','11.6.15041'
s.dependency 'TXLiteAVSDK_Player','12.9.20063'
s.dependency 'TXLiteAVSDK_Player','12.9.20085'
# s.dependency 'FTXPiPKit'
s.vendored_frameworks = [
'localdep/FTXPiPKit.xcframework'
......
......@@ -2,5 +2,5 @@
part of SuperPlayer;
abstract class FPlayerPckInfo {
static const String PLAYER_VERSION = "12.9.0";
static const String PLAYER_VERSION = "12.9.1";
}
\ No newline at end of file
......@@ -219,6 +219,7 @@ class TXVodDownloadController implements TXDownloadFlutterAPI {
mediaInfo.size = msg.size;
mediaInfo.downloadSize = msg.downloadSize;
mediaInfo.url = msg.url;
mediaInfo.isResourceBroken = msg.isResourceBroken;
if (null != msg.appId) {
TXVodDownloadDataSource dataSource = TXVodDownloadDataSource();
dataSource.appId = msg.appId;
......
name: super_player
description: The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).
version: 12.9.0
version: 12.9.1
homepage: https://github.com/LiteAVSDK/Player_Flutter
environment:
......
......@@ -3,5 +3,5 @@ part of demo_super_player_lib;
class PlayerConstants {
static const PKG_NAME = "superplayer_widget";
static const String PLAYER_WIDGET_VERSION = "12.9.0";
static const String PLAYER_WIDGET_VERSION = "12.9.1";
}
......@@ -363,9 +363,9 @@ class SuperPlayerController {
callResume = false;
// Priority use URL to play
if (videoModel.videoURL.isNotEmpty) {
_playWithUrl(videoModel);
await _playWithUrl(videoModel);
} else if (videoModel.videoId != null && (videoModel.videoId!.fileId.isNotEmpty)) {
_playWithField(videoModel);
await _playWithField(videoModel);
}
}
......@@ -373,6 +373,14 @@ class SuperPlayerController {
_setVodListener();
await _vodPlayerController.setToken(null);
_updatePlayerType(SuperPlayerType.VOD);
await _vodPlayerController.setStartTime(startPos);
if (_playAction == SuperPlayerModel.PLAY_ACTION_PRELOAD) {
await _vodPlayerController.setAutoPlay(isAutoPlay: false);
_playAction = SuperPlayerModel.PLAY_ACTION_AUTO_PLAY;
} else if (_playAction == SuperPlayerModel.PLAY_ACTION_AUTO_PLAY ||
_playAction == SuperPlayerModel.PLAY_ACTION_MANUAL_PLAY) {
await _vodPlayerController.setAutoPlay(isAutoPlay: true);
}
if (_curViewId >=0) {
setPlayerView(_curViewId);
}
......@@ -438,7 +446,7 @@ class SuperPlayerController {
return await _vodPlayerController.getPlayableDuration();
}
void _playWithUrl(SuperPlayerModel model) {
Future<void> _playWithUrl(SuperPlayerModel model) async {
List<VideoQuality> videoQualities = [];
VideoQuality? defaultVideoQuality;
String? videoUrl;
......@@ -540,7 +548,7 @@ class SuperPlayerController {
/// Play live streaming
/// 播放直播URL
void _playLiveURL(String url) async {
Future<void> _playLiveURL(String url) async {
_currentPlayUrl = url;
_setLiveListener();
if (_curViewId >= 0) {
......
......@@ -700,7 +700,7 @@ class SuperPlayerViewState extends State<SuperPlayerView> with WidgetsBindingObs
int playAction = _playController.videoModel!.playAction;
if (playerState == SuperPlayerState.LOADING && playAction == SuperPlayerModel.PLAY_ACTION_PRELOAD) {
_playController.resume();
} else if (playerState == SuperPlayerState.INIT) {
} else if (playerState == SuperPlayerState.INIT || playerState == SuperPlayerState.START) {
if (playAction == SuperPlayerModel.PLAY_ACTION_PRELOAD) {
_playController.resume();
} else if (playAction == SuperPlayerModel.PLAY_ACTION_MANUAL_PLAY) {
......
name: superplayer_widget
description: superplayer,base on vodplayer
version: 12.9.0
version: 12.9.1
environment:
sdk: '>=2.17.0 <4.0.0'
......@@ -12,7 +12,7 @@ dependencies:
# internationalization
flutter_localizations:
sdk: flutter
flutter_easyloading: ^3.0.5
flutter_easyloading: 3.0.5
super_player:
# When depending on this package from a real application you should use:
......@@ -22,6 +22,10 @@ dependencies:
# the parent directory to use the current plugin's version.
path: ../../Flutter
dependency_overrides:
# force override flutter_easyloading dep
flutter_spinkit: 5.1.0
dev_dependencies:
flutter_test:
sdk: flutter
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论