Questions tagged [avplayerviewcontroller]

Using AVPlayerViewController makes it easy for you to add media playback capabilities to your application matching the styling and features of the native system players. Since AVPlayerViewController is a system framework class, your playback applications automatically adopt the new aesthetics and features of future operating system updates without any additional work from you.

SDKs

  • iOS 8.0+
  • tvOS 9.0+

Framework

  • AVKit

To find more information :

544 questions
0
votes
2 answers

AVPlayerviewcontroller ios objective c

I have an application for both ipad iphones, ipad users always landscape mode is enabled and portrait for iphone users, now what I am trying to achieve is in the iphone application I play a video using AVPlayerViewController but since the…
MOHi91
  • 65
  • 7
0
votes
1 answer

AVPlayerViewController play/pause issue in iOS

I am working on the iOS application. This application base on the NEWS media. I am playing the small video of highlighted News. I am facing a stranger problem with AVPlayerViewController. When i play the video everything is fine. When i go to…
0
votes
1 answer

AVPlayerViewController scrub bar jumps between second intervals

I've implemented a standard Swift video player:- let path = NSBundle.mainBundle().pathForResource(assetName, ofType: "m4v") let url = NSURL.fileURLWithPath(path!) player = AVPlayer(URL: url) playerViewController.player = player Using…
Daniel Freeman
  • 383
  • 4
  • 11
0
votes
1 answer

Swift AVPlayerViewController add target on playing video

I am using AVPlayerViewController for playing video.The problem is that how can I detect the video is started to play? Usually is to addTarget but I cannot find any Target that I can add on that event. Can someone help me? Thanks in advance.
Janice Zhan
  • 571
  • 1
  • 5
  • 18
0
votes
3 answers

How do I dismiss the AVPlayer automatically when playback has completed?

I have an app that plays local videos using the AVPlayerViewController. But when the video has finished playing I want it to close automatically (like the MPMoviePlayerViewController used to do). After posting this question, I managed to solve this…
EmmyG
  • 23
  • 1
  • 10
0
votes
2 answers

Using AVPlayer and AVPlayerViewController, but audio and video not present

My code looks like this: _player = [AVPlayer playerWithURL:destination]; _playerVC = [AVPlayerViewController new]; _playerVC.player = _player; dispatch_async(dispatch_get_main_queue(), ^{ [self presentViewController:_playerVC animated:YES…
user2977578
  • 413
  • 5
  • 19
0
votes
2 answers

unsatisfied constraints appear after adding a AVPlayerViewController Programatically

I have been adding AVPlayerViewcontroller Programatically like this playerViewController = [[AVPlayerViewController alloc]init]; playerViewController.view.frame = CGRectMake(40,60, 500, 700); …
0
votes
3 answers

How to disable the play pause button in AVPlayerViewController on tvOS?

I have a live video in my AVPlayerViewController and i want to disable the play pause button. How can I do that? I tried this, but it doesn't work: UITapGestureRecognizer *playPauseRec = [[UITapGestureRecognizer alloc] initWithTarget:self…
CarlosAndres
  • 585
  • 1
  • 5
  • 14
0
votes
1 answer

How to Play audios without any delay using AVPlayer

I'm using AVPlayer. It plays audio after some delay. I want to play a sound while clicking on a UIButton after that(audio), I want to play a Video. How can I do that? Can anyone help me? -(IBAction) someMethod3:(id) sender { [self Playaudio]; …
Bharu
  • 159
  • 1
  • 3
  • 13
0
votes
1 answer

How to play AVPlayer videos one after another?

How to play Videos one after another on a Button Click using AVPlayer.
Bharu
  • 159
  • 1
  • 3
  • 13
0
votes
0 answers

AVPlayer doesn't play local url.

Im having trouble playing urls that are saved in my documents folder. I first download the videos from the server and save the path to the videos to my app documents folder. When I pull up the paths from the devices,AVplayer is just blank. Here is…
abdi
  • 1
  • 2
0
votes
2 answers

AVPlayerview comes from top left corner

I'm using AVPlayer to play videos. I have an issue on fullscreen mode. Video player comes from top left corner. It looks odd. NSString *filePath = [self.video_Array objectAtIndex:index]; NSString *soundFilePath = [[NSBundle mainBundle]…
Bharu
  • 159
  • 1
  • 3
  • 13
0
votes
1 answer

how to pass video field to AVPlayer controller from 'performSegueWithIdentifier' button, with swift 2.2

I have a 'performSegueWithIdentifier' set up to be called from a button. A URL for a video is in the string 'self.specimen.filmMovieLink'. How do I pass this field through to the the AVController? I have set up a segue called 'newMovie' and added…
Dimitri T
  • 921
  • 1
  • 13
  • 27
0
votes
1 answer

AVPlayer video not resuming after app become Active

AVPlayer video not resuming from where it left, instead video starts from beginning. Here is my code.Can anyone help me?? -(void)appEnteredForeground:(NSNotification*)notification { if(playerViewController.player.status ==…
Bharu
  • 159
  • 1
  • 3
  • 13
0
votes
1 answer

Reinitializing AVQueuePlayer without haing to create new AVPlayerLayer

while playing remote HLS videos, I am re-initializing AVQueue player which is already initialized with items by using (AVQueuePlayer *)initWithItems:(NSArray *)items However, by doing this sound plays in background but the…