Questions tagged [avplayerview]

25 questions
0
votes
1 answer

AVPlayerView crash in Swift

In my macOS App I have a window with a AVPlayerView. When run from Xcode the window opens and the video plays. However, when I export (Archive>Copy App) the app and open it the window with AVPlayerView crashes. I suspect the issue is that the app is…
unknown
  • 788
  • 9
  • 24
0
votes
1 answer

AVPlayer playing video sideways in Swift

I am trying to record a video and then play it back, the problem is when the video is played back, it plays sideways. I've disabled landscape mode so I have no idea what could be causing the issue. Here's the implementation: class VideoPlayback:…
Noah Iarrobino
  • 1,435
  • 1
  • 10
  • 31
0
votes
0 answers

How to get video location playing by AVPlayer?

I am using AVPlayer to play the video from AWS CloudFront server. Here is my code: let playerItem = AVPlayerItem(url: url) let player = AVPlayer(playerItem: playerItem) playerViewCont.player = player present(playerViewCont, animated: false) {…
0
votes
1 answer

Custom AVPlayerVIew: do you know which initializer is used by default?

The standard NSView initializer initWithFrame:(NSRect)frame; is not getting called in my custom view. I've tried simple init, but so far, nothing is called. Also, the drawRect: method is not called. So how is one to intercept the initialization of…
0
votes
1 answer

Need to Add button and overlay on AVPlayerView for tvOS

Can we add button on AVPlayerViewController and show overlay over that or we need to customize the controls.
Diksha
  • 439
  • 7
  • 22
0
votes
1 answer

Xcode Objective-C Mac: How to place object on top of AVPlayerView?

I'm currently working on a game. It plays a movie and the story changes depending on the players actions. I'm using quick time events (press a button in x seconds). When there's a quick time event I want to show the button that has to be pressed and…
Developer
  • 406
  • 1
  • 4
  • 18
0
votes
1 answer

Swift tvOS: Getting the screen center for AVPlayerView

I am writing an app for tvOS that launches videos from URL's into an AVPlayerView, which is not nested in another View. The trouble is, the user had no idea anything was going on while loading was occurring, so I wanted to add an activity indicator…
D. Pratt
  • 444
  • 8
  • 15
0
votes
1 answer

AVPlayerView shows video locally, but not from IP Camera - OS X

What I am trying to do here is connect to an IP Camera and display the stream/feed using the AVPlayView. If I play a local video everything is working fine: let path = NSBundle.mainBundle().pathForResource("video-bg", ofType: "mp4") let url =…
cmario
  • 605
  • 1
  • 7
  • 22
0
votes
1 answer

Can't stop AVPlayer streaming

I have a UITableview with an AVPlayer instance in every cell. My requirement is to stream video only in the visible cells hence I don't want any player instances in the invisible cells. Play method is called in cellForRowAtIndexPath. Here is my…
KiranGit
  • 61
  • 1
  • 6
0
votes
1 answer

AVPlayerViewController issues

so I am trying to edit some source code from this project source...https://github.com/ariiyu/VideoPlayerSample So, when I simply just try to replace the video path and file it crashes and I am not sure why?? Here is one of the ViewController source…
user3708224
  • 1,229
  • 4
  • 19
  • 37
1
2