GLBasic forum

Main forum => GLBasic - en => Topic started by: mentalthink on 2009-Nov-27

Title: Play video on Iphone or WIZ
Post by: mentalthink on 2009-Nov-27
Hi, in a near future will be a command for play video on WIz and/or Iphone.
Because I  tried to put the actuals commands and donÃ,´t work except on windows.
you can make it, Gernot?Ã,¿... will be a great.

Best Regards.
Iván.

Title: Re: Play video on Iphone or WIZ
Post by: Kitty Hello on 2009-Nov-30
hm. maybe a command to start mplayer? If anyone has that, I can make it in the code. But I'm very short on time. I'm sick, too.  :sick:
Title: Re: Play video on Iphone or WIZ
Post by: MrTAToad on 2009-Nov-30
Get well soon!
Title: Re: Play video on Iphone or WIZ
Post by: trucidare on 2009-Nov-30
Something like this:
Code (glbasic) Select

NSString* thePath = [[NSBundle mainBundle]pathForResource:@"meinMovie" ofType:@"mov"];

MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc]initWithContentURL:[NSURL fileURLWithPath:thePath]];
theMovie.scalingMode = MPMovieScalingModeAspectFill;
theMovie.movieControlMode = MPMovieControlModeHidden;

[theMovie play];



Create an observe call to - it continues the game after closing the video.

regards
Title: Re: Play video on Iphone or WIZ
Post by: bigsofty on 2009-Nov-30
Quote from: Kitty Hello on 2009-Nov-30I'm sick, too.  :sick:

Yep, hope your feeling better soon Gernot.