Questions tagged [avplayerlayer]

AVPlayerLayer is a subclass of CALayer to which an AVPlayer object can direct its visual output.

During playback, AVPlayer may compensate for temporal drift between its visual output and its audible output to one or more independently-clocked audio output devices by adjusting the timing of its associated player layers. The effects of these adjustments are usually very small; however, clients that wish to remain entirely unaffected by such adjustments may wish to place other layers for which timing is important into independently timed subtrees of their layer trees.

You can create arbitrary numbers of player layers with the same AVPlayer object. Only the most-recently-created player layer will actually display the video content on-screen.

Click Here for Apple documentation of AVPlayerLayer.

248 questions
0
votes
0 answers

iOS AVPlayer stuck

I am using AVPlayer for playing remote .mp4 files (in Objective C). The video loads from remote url, but after 1 sec of playing the player freeze. The video got stucked and not playing it. Can any one please help me? NSString *encodedString =…
Rupshikha
  • 213
  • 1
  • 3
  • 16
0
votes
0 answers

Some streams doesn't play on iOS AVPlayer.

I have a weird problem with playing some streams. Those streams don't play, and AVPlayerItem returns the error "Cannot Decode". By inspecting it on different software (ie VLC Media Player), I noticed that the problem is with audio, mean that all…
0
votes
0 answers

AVPlayerLayer existing even after the viewDidDisappear method call in iOS

In my application, I'm using AVPlayer to play a YouTube video with the help of HCYoutubeParser library. My question is, when I load a new view controller I still can hear the sound of the played video file. I tried to load the next view two…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
0
votes
1 answer

AVPlayerLayer inside UIScrollView Not Zooming To Center

I have a UIScrollView *myScrollView which has a UIView *videoView that contains a AVPlayerLayer *playerLayer(Actually a PBJVideoView if anyone is familiar). The AVPlayerLayer is set to AVLayerVideoGravityResizeAspect. myScrollView's delegate's -…
tettoffensive
  • 664
  • 7
  • 24
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

AVPlayer plays sound but view is not shown in mac application

I'd like to play local movie in AVPlayer on macintosh app. I've created simple code but movie doesn't want to show played movie. It plays sound of the movie but there is no view visible. What am I missing? It's my first playing simple app. My…
DKM
  • 270
  • 3
  • 13
0
votes
1 answer

iOS: taking screenshot presenting video ipad

I'm trying to take screenshot playing video but the screenshot always is showing blank. This is my code: UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage…
user2924482
  • 8,380
  • 23
  • 89
  • 173
0
votes
1 answer

How to detach AVPlayerLayer from AVPlayer to play video in background state?

I am trying to play video in background.I follow so many tutorial but i did not get appropriate results.For that i am using AVPlayer.I am able to play my video whenever application state is active.But i want to play music in background for that i…
user2182231
  • 111
  • 1
  • 1
  • 10
0
votes
1 answer

How to detach between AVPlayerLayer from AVPlayer?

I am trying to play video in background.I did follow so many tutorial but I did not get appropriate results.For that I am using AVPlayer.The I follow this url through which I am able to play my video whenever application state is active.But I want…
Ashish Tiwari
  • 2,168
  • 4
  • 30
  • 54
0
votes
1 answer

AVPlayer does not show video

I am trying to play a movie at the beginning of my game. I am using AVPlayer to do this. My problem is, when I register a KVO to check the status of my AVPlayer, my game proceeds as usual without waiting for the video to load and finish. As a…
0
votes
2 answers

How to play video file from asset library using AVPlayerLayer

Im trying to play alasset MOV file from asset library. Does anyone use AVPlayerLayer? if yes some hist will be great...
THY-IPhone
  • 31
  • 5
0
votes
1 answer

Is it possible to clone a AVPlayerLayer?

I need to play one video in three different layers using the same AVPlayerLayer object. Is it possible to clone a AVPlayerLayer so that I can use cloned layers where I need?
satyanarayana
  • 265
  • 4
  • 14
0
votes
3 answers

Video slow motion using AVPLAYER in Cocoa Aplication

I'm going to start video slow motion using AVPlayer in cocoa application. Example: I can select start position and end position for that video. if i play again that video want to slow motion for start and end position only . Any one please tech me…
2vision2
  • 4,933
  • 16
  • 83
  • 164
0
votes
1 answer

AVKit not found in cocoa using xcode 5

I'm have developing one video play application in cocoa. I got one sample code then tried to run. but got exception is "AVKIt is not found". below link i got source…
2vision2
  • 4,933
  • 16
  • 83
  • 164
0
votes
1 answer

Drawing frames from a movie into a CGBitmapContext

I have an app that needs to render frames from a video/movie into a CGBitmapContext with an arbitrary CGAffineTransform. I'd like it to have a decent frame rate, like 20fps at least. I've tried using AVURLAsset and [AVAssetImageGenerator…
1 2 3
16
17