MPMoviePlayerViewController playback stops on tapping stretch button in control


code:
  movieplayerviewcontroller = [[mpmovieplayerviewcontroller alloc] initwithcontenturl:theurl];  	movieplayerviewcontroller.movieplayer.controlstyle = mpmoviecontrolstylefullscreen;  	[movieplayerviewcontroller.movieplayer setfullscreen:yes];  	//movieplayerviewcontroller.movieplayer.scalingmode = mpmoviescalingmodeaspectfit;  	[self.controller presentmovieplayerviewcontrolleranimated:movieplayerviewcontroller];  
my code above. if tap stretch or forward button, movieplayer stops playing , dismiss view controller. plyabackendnotification method getting called .
 

i did inherited mpmovieplayerviewcontroller , added overlay view clear color on forward , expand button, in short disabled user interaction on both controls.

place overlay view below

code:
  - (void)willanimaterotationtointerfaceorientation:(uiinterfaceorientation)tointerfaceorientation duration:(nstimeinterval)duration  {  	if(uiinterfaceorientationisportrait(tointerfaceorientation))  		overlayview.frame = cgrectmake(420.0, 850.0, 170.0, 100.0);  	else  		overlayview.frame = cgrectmake(550.0, 590.0, 170.0, 100.0);    }  
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments