nchutchind/cordova-plugin-streaming-media

Problem with picture in picture on iOS (PIP)

开放

#169 创建于 2019年1月24日

 (7 条评论) (1 个反应) (0 位负责人)Java (285 个派生)batch import
bughelp wantedpull-request-welcome

仓库指标

星标
 (392 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

What version of Streaming-Meda-Cordova-Plugin are you using? 2.2.0

What version of Cordova are you using? 8.0.0

What devices are affected? all iPads

Please describe the issue in detail, with relevant code samples When the user has started the video on an iPad its possible that he taps on the PiP button to play video in a small window hovering over my app (Picture in Picture, floating video). This small window has 3 buttons: Play/Stop, Close and Restore the video to fullscreen.

Unfortunately the restore button just closes the small video window and does NOT restore the full screen video. If the user has switched to another app in the mean time, my app is restored successfully but the video window also closes.

I don't know what happens here exactly. I don't get any callback that something happened with the video and can't do anything about it.

As I understand the iOS AVPlayerViewController has an option to disable Picture-In-Picture but this option isn't available in this plugin.

I have seen in past issues, that there is a problem that AVPlayerViewController doesn't has a callback when the user closes the video, but can you maybe make this option for this plugin so that the user can't enter PiP at all?

贡献者指南