Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2768] status bar appears when video is played

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:29:02.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsapple, bar, bug, ios, ipass1, status, video
ReporterPedro Enrique
AssigneeBlain Hamon
Created2011-04-15T03:29:01.000+0000
Updated2017-03-07T19:56:48.000+0000

Description

In tiapp.xml, setting the status bar hidden, hides the status bar as expected. But when a movie is played using 'createVideoPlayer' the status bar appears and cannot be hidden again. This is from a Help Desk ticket:
http://developer.appcelerator.com/helpdesk/view/63571">http://developer.appcelerator.com/helpdesk/view/63571

Here is a sample code: http://pastie.org/private/qvp8jfkqm2jgi33qvurniq">http://pastie.org/private/qvp8jfkqm2jgi33qvurniq

Comments

  1. Stephen Tramer 2011-04-15

    Apple bug. Transitioning to fullscreen mode in a video forces the display of the status bar - however, exiting it removes the status bar from the screen (whether by 'DONE' button or some other method).

    Radar bug # 8925941.

    Moving to TBS/HOLD because it relies on Apple fixing the issue.

  2. Pedro Enrique 2011-04-15

    I understand that this is an Apple bug, but the status bar does not disappear after the video is done.
    Code:

       // =======================================
       //   app.js
       
       var win1 = Ti.UI.createWindow({});
       var image = Titanium.UI.createImageView({image:'images/V/v0.jpg'});
       
       win1.add(image); 
       win1.open();
       
       image.addEventListener('click', function(e){    
           var videowin = Titanium.UI.createWindow({
               url: 'video1_play.js',
           });
           videowin.open();
       });
       
       
       // =======================================
       // video1_play.js
       
       var videowin = Titanium.UI.currentWindow;
       
       var v=Titanium.Media.createVideoPlayer({
           contentURL:'movie.mp4',
           movieControlMode:Titanium.Media.VIDEO_CONTROL_FULLSCREEN,
       
       });
       v.addEventListener('complete',function(){   
           videowin.close();
       });
       
       videowin.add(v);
       v.play();
       

    iPad Simulator 4.2
    Ti SDK 1.6 RC1

    Helpdesk ticket: http://developer.appcelerator.com/helpdesk/view/73021">http://developer.appcelerator.com/helpdesk/view/73021

  3. Stephen Tramer 2011-04-15

    Apple has marked the bug invalid ('correct behavior').

  4. Ben S. 2012-07-18

    This bug is also existing in current 2.1.0 Release with IOS SDK 5.1, simulator and on device. It primarily comes up when you set mediaControlStyle:Titanium.Media.VIDEO_CONTROL_FULLSCREEN when creating a video player instance. Then the status bar is opened with the video player and not closed after player is closed.
  5. Lee Morris 2017-03-07

    Closing ticket as invalid.

JSON Source