iOS: modal window with video will crash in 12.2.0
m1ga opened this issue · 1 comments
m1ga commented
I have searched and made sure there are no existing issues for the issue I am filing
- I have searched the existing issues
Description
Having a video in a modal window will crash the app with 12.2.0
Error:
Application received error: child view controller:<AVPlayerViewController: 0x14180b000> should have parent view controller:<TiViewController: 0x1404b4d30> but actual parent is:<TiRootViewController: 0x142028200>
Expected Behavior
Show the video
Actual behavior
Crashing the app
Reproducible sample
const win = Titanium.UI.createWindow({
modal: true. // false works fine
});
const videoPlayer = Titanium.Media.createVideoPlayer({
autoplay: true,
height: 300,
width: 300,
mediaControlStyle: Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode: Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT
});
videoPlayer.url = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4';
win.add(videoPlayer);
win.open();
Steps to reproduce
- start the app with 12.2.0
- changing it to
modal: false
will start the app without a crash - changing back to 12.1.2 with
modal: true
works fine too
Platform
iOS
SDK version you are using
12.2.0
Alloy version you are using
No response