[TIMOB-28221] iOS: Default value of property Ti.Media.VideoPlayer.pictureInPictureEnabled should be true
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-11-19T16:16:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.3.0 |
| Components | iOS |
| Labels | videoplayer |
| Reporter | Vijay Singh |
| Assignee | Vijay Singh |
| Created | 2020-11-03T18:30:40.000+0000 |
| Updated | 2020-11-19T16:16:12.000+0000 |
Description
Default value of property Ti.Media.VideoPlayer.pictureInPictureEnabled is false. It should be true.
Test Case -
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Log property value'
});
btn.addEventListener('click', function() {
const player = Ti.Media.createVideoPlayer();
Ti.API.info(player.pictureInPictureEnabled); // should be true
});
win.add(btn);
win.open();
PR - https://github.com/appcelerator/titanium_mobile/pull/12239
merged to master for 9.3.0 target
*Closing ticket*. Fix verified in SDK version ``. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/12239