[AC-5588] iOS: Videoplayer's native control is not working properly
GitHub Issue | n/a |
Type | New Feature |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2018-02-09T18:00:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | n/a |
Reporter | shumne |
Assignee | Shak Hossain |
Created | 2018-02-09T13:28:05.000+0000 |
Updated | 2018-02-09T18:00:58.000+0000 |
Description
We have using the Demo code.
var vidWin = Titanium.UI.createWindow({
title : 'Video View Demo',
backgroundColor : '#fff'
});
var videoPlayer = Titanium.Media.createVideoPlayer({
top : 2,
autoplay : false,
backgroundColor : 'blue',
height : 300,
width : 300,
mediaControlStyle : Titanium.Media.VIDEO_CONTROL_EMBEDDED,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
showControl : true
});
videoPlayer.url = '\video.mp4';
vidWin.add(videoPlayer);
vidWin.open();
Now we can click on the fullscreen buttton.
At the bottom, there are forward/backward and pause button.
Pause button works properly. but forward and the backward button does nothing and video gets stuck.
Also, there is one more issue if we give background color as black or any other it does not show the default loading indicator at all. It shows only when the background color is blue.
Please let me know if I am missing anything.
Thanks.
Attachments
Hey there! It is a known issue that happens when you set the
url
property after creating the video-player. There are two workarounds until this is fully fixed: - Set theurl
property on creation of the videoplayer - Create a new videoplayer when you need to change the URL afterwards.Duplicate: TIMOB-25566