Skip to content

Commit b4fe752

Browse files
author
kongdywang
committed
Fix the issue where the texture is lost after actively exiting Picture-in-Picture mode in Android live streaming.
1 parent a44fa4f commit b4fe752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flutter/android/src/main/java/com/tencent/vod/flutter/ui/FlutterPipImplActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ private void handleIntent(Intent intent) {
332332
if (TextUtils.equals(action, FTXEvent.PIP_ACTION_START)) {
333333
startPipVideo();
334334
} else if (TextUtils.equals(action, FTXEvent.PIP_ACTION_EXIT)) {
335-
exitPip(true);
335+
mIsNeedToStop = true;
336+
handlePipExitEvent();
336337
} else if (TextUtils.equals(action, FTXEvent.PIP_ACTION_UPDATE)) {
337338
Bundle data = intent.getBundleExtra("data");
338339
if (null != data) {

0 commit comments

Comments
 (0)