[TIMOB-28217] iOS: Ti.Media.VideoPlayer is crashing when setting showsControls earlier than url property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-04-08T15:21:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.0.0 |
Components | iOS |
Labels | videoplayer |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2020-11-02T22:48:13.000+0000 |
Updated | 2021-07-23T17:34:11.000+0000 |
Description
When setting property 'showControl' at creation time of Ti.Media.VideoPlayer and 'url' property later is crashing the app.
Test Case -
var basewin = Ti.UI.createWindow({
backgroundColor : 'white',
layout : 'vertical'
});
var videoPlayer = Titanium.Media.createVideoPlayer({
top : 120,
autoplay : false,
backgroundColor : 'blue',
height : 300,
width : 300,
mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
showsControls: true,
// url: 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4' // Setting url at creation time will not crash
});
videoPlayer.url = 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4';
basewin.add(videoPlayer);
basewin.open();
Work around -
Set url property at Ti.Media.VideoPlayer creation time.
PR - https://github.com/appcelerator/titanium_mobile/pull/12508
FR Passed, waiting on Jenkins build.
merged to master and 10_0_X branches
Hello. Good afternoon. I am still getting the crash even adding the workaround suggested. This is a critical issue. When I try to set the url property on the controller of the video component, the app is crashing. With {color:#14892c}9.3.2.GA it is working pretty good{color}, but with TiSDK {color:#d04437}10.0.0.GA it is still crashing.{color} *I am using the following specs:*
*Log:*
Note: Perhaps this crash is due that I am using the module of :
Please let me know whether you have any doubt or question. Thanks, and best, Antonio Duran.