I am using the MP Movie Player for playing a live channel feed, i am also adding a tap gesture on a view, for hiding and unhiding of a collection view, this view is then added on the player view.
player.shouldAutoplay=YES;
player.controlStyle=MPMovieControlStyleDefault;
viewVideo.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
[viewVideo addSubview:player.view];
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap)];
tapGesture.delegate=self;
CGRect aViewFrame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
aView = [[UIView alloc] initWithFrame:aViewFrame];
[aView addGestureRecognizer:tapGesture];
[player.view setUserInteractionEnabled:YES];
[player.view addSubview:aView];
Now the problem i am facing is that when the tap gesture is disabled, then i can use this control state buttons such as (full screen and the pause, play), but if i keep the tap gesture enabled on the player view, then i cannot use this control state bar.
Is there a way i can put bring the control state bar in front so that i can use this functions. And also what is the fixed height of this control state, Please specify dimensions for landscape and portrait both.