Skip to main content
Santanu Karar
Known Participant
June 2, 2012
Question

Playing video on iOS fullscreen

  • June 2, 2012
  • 2 replies
  • 1048 views

Hi,

I'm working on an iOS project involving video playback. Is there a way to run a video in iOS' default media player and fullscreen? I also need the media player removed from the stage upon tapping on 'DONE' button (default iOS media player's in-fullscreen option). Presently I can able to trigger the default media player by the use of StageWebView but its not directly opens to fullscreen, nor I can get a callback when the 'DONE' button press in fullscreen (to remove player).

Following is StageWebView usage in a fashioned manner:

webView = new StageWebView();

path = new File( new File("app:/"+value.itemPath).nativePath ).url;

webView.stage = this.stage;

webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );

webView.loadURL( path );

Any help would be very appreciated.

Thank you.

This topic has been closed for replies.

2 replies

Inspiring
June 4, 2012

AFAIK, the "done" button fires the same "pause" event as the actual pause button in the player, so this makes it a bit difficult to implement any sort of trigger for the done button, since as user press of the pause button would respond to the same event and cause the movie to potentially prematurely remove itself from the stage.

But I'm pretty new to iOS dev so I could be missing something...

Santanu Karar
Known Participant
June 4, 2012

Thanks Gtr. Though I've found this can be possible (the things which I wanted to get with the native video player) with native extension. But I'm not very familiar with creating the subject, nor found that that such article over net doing native extension for video playback iOS. But this sure could be the solution for this aspect.