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
0 answers

Present AVPlayerViewController in UITabBarController in iPad

My code: NSString *url = @"https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"; AVPlayer *player = [AVPlayer playerWithURL:[NSURL URLWithString:url]]; AVPlayerViewController *playerViewController = [AVPlayerViewController…
0
votes
1 answer

Video Not playing in iOS 10

In the following code: // NSURL *videoURL1 = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.ebookfrenzy.com/ios_book/movie/movie.mov"]]; NSURL *videoURL2 = [NSURL URLWithString:[NSString…
Sekhar
  • 11
  • 2
0
votes
2 answers

Swift, how to get event click done button during play the video on AVPlayer?

I have one TableViewController and I play video on that Table by tapping button inside cell to play by AVPlayer by code @IBAction func btnFullScreen(sender: AnyObject) { let playController = AVPlayerViewController() …
Leang Socheat
  • 37
  • 2
  • 9
0
votes
3 answers

Videos plays from top left corner

I have a video player. when I try to play it in full screen mode, it comes from top left corner. how can I resolve this?` -(void)video_player:(int)index { NSString *soundFilePath = [[NSBundle mainBundle] pathForResource:[_video_Array…
Sumi
  • 39
  • 1
  • 10
0
votes
1 answer

SeektoTime not working properly

To pause and resume video i"m using the below code. but its not resuming from where it left. can anyone help me? -(void)appEnteredBackground:(NSNotification*)notification { [playerViewController.player pause]; currentTime =…
Sumi
  • 39
  • 1
  • 10
0
votes
1 answer

Does the AVPlayerViewController automatically come with a AVPlayer object?

New to swift and the view controller paradigm. Would like to know if ViewControllers automatically come with the objects it describes for example, does avplayerviewcontroller automatically come with an avplayer object ready to be used or do we…
Laurence Wingo
  • 3,912
  • 7
  • 33
  • 61
0
votes
3 answers

m3u8 file doesnt play in iOS

Hello I want to play m3u8 file using swift. My m3u8 file structure is like this. #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM- INF:BANDWIDTH=814508,CODECS="avc1.66.51,mp4a.40.34",RESOLUTION=720x576 chunklist_w247403833.m3u8 But this is not playing. But…
Irrd
  • 325
  • 1
  • 6
  • 18
0
votes
0 answers

Swift: AVPlayerViewController will not play video from device

URL // What prints below for selectedMedia.videoPath file:///private/var/mobile/Containers/Data/Application/9A7E21B7-81E7-4F4A-97FB-019AB99A3407/tmp/trim.4B1C07A3-0139-4AC3-B6DE-EB90F8CF582D.MOV CODE // From UIPickerViewController…
Brandon A
  • 8,153
  • 3
  • 42
  • 77
0
votes
1 answer

swift avplayer controller get fullscreen button

I'm pretty new in ios programming. Please, help me to find native solution to get the same button in avplayer controller as it is in safari: How to enable this button in right bottom corner and assign my action to it?
Ruslan Sabirov
  • 440
  • 1
  • 4
  • 19
0
votes
1 answer

AVPlayerViewController not rotating

My custom AVPlayerViewController won't autorotate if the previous view controller has been instantiated. If I present the AVPlayerViewController, it rotates, and if I present the previous view controller, it rotates. Here's my code for instantiating…
0
votes
1 answer

AVPlayerViewController video's audio background playing and support for multiple formats

I have to do a Video streaming app (using a remote url) in swift. But there is no any exact video format. Sometimes it can be m3u8 sometimes mp4 etc.. but my video player should support for what ever the format comes from the back end. Also when the…
Irrd
  • 325
  • 1
  • 6
  • 18
0
votes
3 answers

Avplayer not playing video in ios 8.0

I have implemented avplayer programatically. @interface showAskUsVideo () { AVURLAsset *asset; AVPlayerItem *item; } @property (strong, nonatomic) AVPlayer *player; -(void)viewWillAppear:(BOOL)animated { [self…
Akshay Ambekar
  • 325
  • 1
  • 3
  • 14
0
votes
0 answers

Message sent to deallocated instance in swift

I'm getting an error that causes the app to crash. My application having list of the videos(My application screen divided in two part, one for player and second for videos list). I am using AVPlayerViewController for play the video. If user clicks…
0
votes
1 answer

Apps are reviewed on an IPv6 network. But rejected by the Apple

Apple has rejected my app because "all apps must support IPv6". I use AVPlayer to play stream. From Apple 2. 1 PERFORMANCE: APP COMPLETENESS Performance - 2.1 We discovered one or more bugs in your app when reviewed on an Apple TV running…
Vipulk617
  • 799
  • 1
  • 7
  • 23
0
votes
0 answers

AVPlayerItemDidPlayToEndTimeNotification issue in tvOS

I am developing a app on tvOS platform. And facing a strange problem with AVPlayerItemDidPlayToEndTimeNotification. When i am playing the video and disconnect from the internet connection, the Notification called before the video end. i am not…
Sankalap Yaduraj Singh
  • 1,167
  • 2
  • 14
  • 32