Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20458] iOS: Video is not displaying on iOS after resuming to app.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionNeeds more info
Resolution Date2018-02-09T17:59:53.000+0000
Affected Version/sRelease 5.1.2
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterCREATIVE KAIZEN
AssigneeGary Mathews
Created2016-02-24T17:31:10.000+0000
Updated2018-02-09T17:59:53.000+0000

Description

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.

Attachments

FileDateSize
diagnostic7624837244250426097.log2016-02-24T17:31:29.000+0000146385

Comments

No comments

JSON Source