ArisRS
ArisRS

Reputation: 1394

MPMoviePlayerViewController not showing volume slider?

I am playing the video from the url:

   MPMoviePlayerViewController *m = [[MPMoviePlayerViewController alloc] initWithContentURL:url];

    if([m.moviePlayer respondsToSelector:@selector(setAllowsAirPlay:)])
        m.moviePlayer.allowsAirPlay = YES;
    [self presentMoviePlayerViewControllerAnimated:m];

It is playing, but there is no volume control slider. Is it possible to add volume control?

Upvotes: 0

Views: 1097

Answers (1)

stephan
stephan

Reputation: 26

You can use MPVolumeView object.

volume = [[MPVolumeView alloc] initWithFrame: rect];
[self addSubview:volume];

Upvotes: 1

Related Questions