Details
-
Type:
Bug
-
Status: In Review
-
Priority:
High
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Release 10.0.1
-
Component/s: iOS
-
Labels:
-
Story Points:3
-
Sprint:2021 Sprint 5
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.