提交 56641ff3 authored 作者: kongdywang's avatar kongdywang

Fix the issue of restoration failure on some Android devices with PIP & update to 12.7.4

上级 678ae76d
#### Version: 12.7.4 2025.09.09
##### Features:
- Fix the issue of restoration failure on some Android devices with PIP
#### Version: 12.7.3 2025.09.03
##### Features:
......
......@@ -5,7 +5,7 @@ buildLog() {
}
inputVersion=$1
export VERSION_NAME="12.7.3"
export VERSION_NAME="12.7.4"
if [ -n "$inputVersion" ]; then
VERSION_NAME=$inputVersion
fi
......
......@@ -4,7 +4,7 @@ rootProject.ext {
supportSdkVersion = "26.0.1"
minSdkVersion = 19
targetSdkVersion = 28
playerVersion = "12.7.3"
playerVersion = "12.7.4"
compat = "androidx.appcompat:appcompat:1.6.1"
/**
......
......@@ -159,7 +159,7 @@ public class FTXLivePlayer extends FTXLivePlayerRenderHost implements TXFlutterL
}
int startPlayerLivePlay(String url) {
LiteavLog.d(TAG, "startLivePlay:");
LiteavLog.i(TAG, "startLivePlay:");
if (null != mLivePlayer) {
if (null != mCurRenderView) {
mCurRenderView.setPlayer(this);
......@@ -177,6 +177,7 @@ public class FTXLivePlayer extends FTXLivePlayerRenderHost implements TXFlutterL
}
int stopPlay(boolean isNeedClearLastImg) {
LiteavLog.i(TAG, "called stopPlay isNeedClearLastImg:" + isNeedClearLastImg);
int result = Uninitialized;
if (mLivePlayer != null) {
mLastPlayEvent = -1;
......@@ -201,6 +202,7 @@ public class FTXLivePlayer extends FTXLivePlayerRenderHost implements TXFlutterL
}
void pausePlayer() {
LiteavLog.i(TAG, "called pausePlayer");
if (mLivePlayer != null) {
mLivePlayer.pauseVideo();
mLivePlayer.pauseAudio();
......
......@@ -330,8 +330,7 @@ public class FlutterPipImplActivity extends Activity implements ITXVodPlayListen
}
mPlayerHolder.pause();
int codeEvent = mIsNeedToStop ? FTXEvent.EVENT_PIP_MODE_ALREADY_EXIT : FTXEvent.EVENT_PIP_MODE_RESTORE_UI;
sendPipEvent(codeEvent, data);
exitPip(codeEvent == FTXEvent.EVENT_PIP_MODE_ALREADY_EXIT);
exitPip(codeEvent == FTXEvent.EVENT_PIP_MODE_ALREADY_EXIT, codeEvent, data);
}
@Override
......@@ -433,7 +432,7 @@ public class FlutterPipImplActivity extends Activity implements ITXVodPlayListen
* Close immediately without delay. Generally, set it to `true` to close picture-in-picture
* mode and `false` to restore picture-in-picture mode.
*/
private void exitPip(boolean closeImmediately) {
private void exitPip(boolean closeImmediately, int codeEvent, Bundle data) {
if (mIsPipFinishing) {
return;
}
......@@ -445,6 +444,9 @@ public class FlutterPipImplActivity extends Activity implements ITXVodPlayListen
if (!closeImmediately) {
mVideoRenderView.setVisibility(View.GONE);
mVideoProgress.setVisibility(View.GONE);
mMainHandler.postDelayed(new Runnable() {
@Override
public void run() {
/*
The PiP window can launch its own Activity. Therefore,
we can initiate our own here. By executing the termination code during the launch,
......@@ -453,8 +455,12 @@ public class FlutterPipImplActivity extends Activity implements ITXVodPlayListen
it can display back to the original page.
*/
moveCurActToFront();
sendPipEvent(codeEvent, data);
}
}, 300);
} else {
destroyPipAct();
sendPipEvent(codeEvent, data);
}
}
}
......
......@@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'super_player'
s.version = '12.7.3'
s.version = '12.7.4'
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.
......
......@@ -2,5 +2,5 @@
part of SuperPlayer;
abstract class FPlayerPckInfo {
static const String PLAYER_VERSION = "12.7.3";
static const String PLAYER_VERSION = "12.7.4";
}
\ No newline at end of file
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.7.3
version: 12.7.4
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.7.3";
static const String PLAYER_WIDGET_VERSION = "12.7.4";
}
name: superplayer_widget
description: superplayer,base on vodplayer
version: 12.7.3
version: 12.7.4
environment:
sdk: '>=2.17.0 <4.0.0'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论