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

Replacing AVPlayer with MPMoviePlayerController

I am trying to replace AVPlayer with MPMoviePlayerController as I want to be able to add an animation with transparent background to a view. The problem is the animation is not displaying with MPMoviePlayerController. Please find my lines below. The…
Armand
  • 435
  • 1
  • 11
  • 23
0
votes
1 answer

Video view is not full screen in landscape mode iPhone

I am using this code with autolayout view controller and playing this video in another view called videoView but it is not playing the video in fullscreen. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,…
iTag
  • 413
  • 1
  • 4
  • 10
0
votes
1 answer

Play video in loop +AVQueuePlayer

I had used this video to play without jerk.But how to play the secondVideoItem in loop..That is after video get play i want to add this video to 10-15time. Only secondVideoItem not firstVideoItem. NSString *secondVideoPath = [[NSBundle mainBundle]…
ios developer
  • 3,363
  • 3
  • 51
  • 111
0
votes
1 answer

Watermark layer added text gets flipped to opposite direction when adding to video

I am trying to add a watermark layer(image / text) to a video using the source code from the below link but when added with gesture recognizers to resize the watermark and while exporting, the position and direction of the added watermark changes in…
vadivelu
  • 508
  • 10
  • 26
-1
votes
1 answer

Put buttons over PlayerLayer - Swift - Programmatically

I have a UIView which Is supposed to play a video using AVPlayerLayer and AVPlayer. I set the player in this way: fileprivate func setUpPlayer(){ let urlPathString = Bundle.main.path(forResource: "dance", ofType: "mp4") if…
user13370778
-1
votes
1 answer

Start video from certain point Swift

I have a video that plays within an image view using avPlayerLayer. It pauses/plays when videoViewTapped is called (i.t. the imageView is tapped by the user). There is also an option for go in full screen mode. I have tried using timeStopped =…
Ram
  • 69
  • 7
-1
votes
1 answer

How to force AVPlayer respect EXIF metadata

I'm streaming an online or localy downloaded mp4 video via AVPlayer component. Some mp4 files have wrong orientation, but EXIF metadata says how video should be rotated when played. However, AVPlayer doesn't seem to respect that. Is there any way to…
mixtly87
  • 1,675
  • 15
  • 32
-1
votes
1 answer

Video files are not Streaming using MPMoviePlayerController?

How can i do streaming of video files using AVPlayerlayer?
ChenSmile
  • 3,401
  • 4
  • 39
  • 69
1 2 3
16
17