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
1 answer

AVPlayerViewController not resizing on certain iPhone models

I am using AVPlayerViewController for live video streaming in my app. I have a problem with video window size in landscape mode. The following code works fine for all iPad models and for iPhone 4s only. However, for iPhone 5 and later (iPhone 6, 6s…
0
votes
2 answers

AVPlayerViewController and AVPlayer in swift doesn't show anything

I'm trying to play an mp4 video from documents path in a AVPlayerViewController with an AVPlayer but it doesn't appear anything on screen.What am I doing wrong? Here a screenshot of the simulator: http://postimg.org/image/xma60nfrf/ and this is my…
solero_ice
  • 49
  • 1
  • 6
0
votes
1 answer

Presenting avplayer horizontally

Is there any way to allow landscape mode in only one view controller in an app? I'm presenting it modally like so: let recViewController = AVPlayerViewController() recViewController.modalTransitionStyle = .CoverVertical recViewController.player =…
Raymond Rangel
  • 149
  • 3
  • 12
0
votes
1 answer

Creating video preview on iCarousel using PFFiles from Parse IOS

I have created an iCarousel View and am trying to display a video preview in each "cell"/view. I have the videos stored in Parse and am trying to Query from the cloud Retrieve the data from the PFFile Convert the data to URL Play URL using…
0
votes
0 answers

Video Plays in several uitableView Cells ios

I have a big issue with my UITableView. im trying to desplay a video when user tap on a perticular cell. but my problem is when i scroll the tableiew, the video is appered in other cells also. how can i prevent this ? here is my code (Im Using…
0
votes
1 answer

Different keys for AVAsynchronousKeyValueLoading

I am looking for playing a remote mp4 video on tvOS with AVPlayer. (I am already successful in playing the video but there is one confusion) I have looked different forums and there is one method that i can use with AVURLAsset and the method is …
Madu
  • 4,849
  • 9
  • 44
  • 78
0
votes
2 answers

AVPlayer pathForResource not getting called

I have a video background for the welcome screen of the app but when I run only a blank screen appears. The string for the bundle path for resource part is perfectly correct so a typo isn't the problem or anything. When I put a breakpoint on the…
Echizzle
  • 3,359
  • 5
  • 17
  • 28
0
votes
0 answers

tvOS AVPlayerViewController Subtitles

I am having an issue displaying subtitles for AVPlayerViewController. I set [_player setRequiresFullSubtitles:YES]; in my code where I create the AVPlayerViewController, but it still does not show.
Jenel Ejercito Myers
  • 2,553
  • 2
  • 16
  • 24
0
votes
1 answer

AVPlayerViewController refuses to load/play video files/streams

I'm trying to load HLS streams in my app but I can't get them to even display properly. I have an AVPlayerViewController set up as the initial view controller of my app and the following code: import UIKit import AVKit import AVFoundation private…
0
votes
0 answers

fileURLWithPath is getting nil for AVPlayerController

I'm trying to play a video with AVPlayer but getting error while giving pathForResource. Tried all possible ways of wrapping optional values but not succeed. Any one can help me out. let userdefault = NSUserDefaults.standardUserDefaults() …
Princess
  • 309
  • 3
  • 17
0
votes
1 answer

AVPlayerViewController.videoBounds is wrong in iOS9?

i have subclassed an AVPlayerViewController and need to view a UIButton to show over the video. I use the videoBounds property to layout this button, using ReactiveCocoa: @weakify(self); [RACObserve(self, videoBounds) subscribeNext:^(NSValue *rect)…
dOM
  • 555
  • 5
  • 14
0
votes
1 answer

AvPlayer not playing video in Xcode 7

I've been trying to get this to work but can't seem to find the solution. I want a video to start playing on viewDidLoad. I can get the AVPlayerViewController to show up but no video plays. Any suggestions would be greatly appreciated. import…
Susan Starkman
  • 163
  • 1
  • 1
  • 7
-1
votes
1 answer

Avplayer Tizen controller

I am looking for avplayer code that client can control the player on moves ( avplayer controller ) Same like this photo it's my android version
-1
votes
3 answers

Xcode Objective-C IOS - How to play two videos next to each other?

I want to play two videos next to each other. When building Mac apps I did this by using a AVPlayer object. It is a view that you could place inside of your ViewController. But when I tried to find the AVPlayer object in the object library in an IOS…
Developer
  • 406
  • 1
  • 4
  • 18
-1
votes
2 answers

How to pause video in AVPlayervewcontroller?

I have play video using AVPlayervewcontroller ,but I am facing issue to pause video. It has a method to stop video than start from beging, but I want to pause video. Please give me some ideas how can I achieve this? Thanx
1 2 3
36
37