What are AVPlayerViewController delegate methods for playing music like Mp3
I want to add an action to the All button that shows the following image. I am adding this view via .. following code -
AVPlayerViewController *playerViewController = [[AVPlayerViewController alloc] init];
playerViewController.view.frame = CGRectMake(10,10, _bgView.frame.size.width-20, _bgView.frame.size.height-20);
playerViewController.player = [AVPlayer playerWithURL:url1];
[_bgView addSubview:playerViewController.view];
_bgView.autoresizesSubviews = TRUE;
So please help me to add action on these buttons
+3
source to share
1 answer
Yes ..... I solve these problems ... the correct code is
_playerViewController = [[AVPlayerViewController alloc] init];
_playerViewController.view.frame=CGRectMake(10,10, _bgView.frame.size.width-20, _bgView.frame.size.height-20);
_playerViewController.player = [AVPlayer playerWithURL:url1];
+3
source to share