Steps to Reproduce
var nativePath = 'file:///var/mobile/Containers/Data/Application/xxxx/Documents/exercise-vid-fhd-98.mp4';
var videoPlayer = Titanium.Media.createVideoPlayer({
url: nativePath,
autoplay : true,
repeatMode: Ti.Media.VIDEO_REPEAT_MODE_ONE,
mediaControlStyle: Titanium.Media.VIDEO_CONTROL_NONE ,
scalingMode : Ti.Media.VIDEO_SCALING_ASPECT_FIT,
backgroundColor: '#f0f2f2'
});
var window = Ti.UI.createWindow();
window.add(videoPlayer);
window.open();
Ti.App.addEventListener('pause', function() { videoPlayer.pause()});
Ti.App.addEventListener('resume', function() { videoPlayer.play()});
Actual Result
If user during video play press Home button and then get back to application than very often video is not visible anymore but it's playing (sound can be heard). If user change the orientation than video is visible again.
Sometimes video reapers if pausing and resuming app is repeated for few times.
The problem is not connected with size of the file because same problem occurs with very small videos (800KB) and very big ones (60MB).
Expected Result
Video should not dissapear and should be always visible.
No comments