0

I saw this example on appsmuck.com for seamless video looping, it works fine on iphoneOS 3.0 but doesn't works on 3.2 or above :(

It says movieControlMode is deprecated

http://appsamuck.com/day26.html

can someone tell me how to hide the controls in iphoneOS 3.2 or above.. ?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Shrey
  • 1,959
  • 2
  • 21
  • 44

2 Answers2

0

you can replace that line with theMovie.controlStyle = MPMovieControlStyleDefault;

Raxit
  • 824
  • 7
  • 12
  • nope its not working... :( i wrote.. `moviePlayer.controlStyle = MPMovieControlStyleDefault; – Shrey Dec 23 '10 at 10:48
  • then try moviePlayer.controlStyle = MPMovieControlModeHidden; –  Dec 23 '10 at 10:58
  • 1
    In previous answer i just gave the example to use the controlStyle. If you set the MPMovieControlStyleNone. It will hide the controls. Use this theMovie.controlStyle = MPMovieControlStyleNone; – Raxit Dec 23 '10 at 11:07
  • you should use my #if statement if you still want to support versions prior 3.2 –  Dec 23 '10 at 11:45
0

ok try this one:

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 32000
    moviePlayer.controlStyle = MPMovieControlStyleNone;
#else
    moviePlayer.movieControlMode = MPMovieControlModeHidden; 
#endif