提交 a92e877e authored 作者: kongdywang's avatar kongdywang

Fix an occasional crash in Picture-in-Picture restoration on individual Android models

上级 46436195
......@@ -648,12 +648,14 @@ public class FlutterPipImplActivity extends Activity implements TextureView.Surf
}
private void sendPlayerEvent(int eventCode, Bundle data) {
if (null != mCurrentParams) {
Bundle params = new Bundle();
params.putInt(FTXEvent.EXTRA_NAME_PLAYER_ID, mCurrentParams.getCurrentPlayerId());
params.putInt(FTXEvent.EXTRA_NAME_PIP_PLAYER_EVENT_ID, eventCode);
params.putBundle(FTXEvent.EXTRA_NAME_PIP_PLAYER_EVENT_PARAMS, data);
TXSimpleEventBus.getInstance().post(FTXEvent.EVENT_PIP_PLAYER_EVENT_ACTION, params);
}
}
@Override
public void onNetStatus(TXVodPlayer txVodPlayer, Bundle bundle) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论