avplayerlayer Questions
5
I my UIViewController I have an outlet to UIView, where I would like to display video using external links. In this case I try to create AVPlayerLayer and add it to my UIView outlet.
My code looks...
Broadcasting asked 24/6, 2016 at 10:27
8
Solved
I have PlayerView class for displaying AVPlayer's playback. Code from documentation.
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface PlayerView : UIView
@prop...
Patina asked 23/8, 2012 at 12:12
2
I am using an AVPlayer to present a video. The app has only one .mp4 but for a different use case, the same video needs to get flipped.
The buttons are there and completely functional, you can pres...
Jehoash asked 1/7, 2022 at 14:15
4
Im trying to display a local recorded video in a AVPlayerLayer which works sometimes. I can hear the audio from the recorded video but can't see the video. Sometimes both video and audio is working...
Bullyrag asked 25/11, 2016 at 15:38
3
Solved
I am working on an application in which I record a video. When recording finished I put a GIF image on it with use of Library.
My code for playing video and putting gif image as an overlay
sel...
Mariner asked 30/9, 2016 at 5:5
4
I have an App in which I use AVPlayerLayer (used within a subclass of UIView just like Apples AV Foundation Programming Guide). Ihave a couple of view controllers witch are held in the View Control...
Obrien asked 12/2, 2014 at 18:52
6
I am using AVPlayer for music playback. My problem is that after an incoming call, the player won't resume. How do I handle this when an incoming call comes?
Graben asked 23/12, 2013 at 4:3
1
I have an app that plays back videos. It's compatible with iOS 11, 12 and iOS 13. On iOS 11 and 12, video playback works properly as expected using either AVPlayerViewController or even just AVPlay...
Accommodate asked 28/10, 2019 at 2:39
1
I am using multiple AVPlayers to display content on my screen and they are all playing video simultaneously.
The issue is that sometimes the avplayer is playing but the avplayerlayer isn't showing...
Telephonist asked 21/6, 2015 at 4:51
3
Solved
I try to embed different videos from youtube vimeo, dailymotion.
Sadly at the Moment nothing is shown except the backgroundcolor of my containerView:
UIView *containerView = [[UIView alloc] init...
Signification asked 3/3, 2014 at 14:55
0
I am working on Video player based Application, where I have to play multiple
Videos using AVPlayer. Each video has to play with some CIFilter effect so I am using VideoComposition for that.
My pr...
Wellappointed asked 18/2, 2019 at 10:39
2
Solved
I get random crashes (which I can't reproduce on devices I own) in my app with exception:
Cannot remove an observer Foundation.NSKeyValueObservation 0xaddress for the key path "readyForDisplay" ...
Antiquate asked 24/9, 2018 at 12:4
1
If you need to play multiple videos in the same view, there are seemingly two approaches: (1) create new AVPlayerLayers and AVPlayers each time; or (2) reuse the same ones.
Assume your class is de...
Savarin asked 29/1, 2016 at 22:44
2
i'm trying to use a AVPlayerLayer as a SCNMaterial to be assigned to a SCNSphere.
Based on:
https://developer.apple.com/library/mac/samplecode/SceneKit_Slides_WWDC2013/Listings/Scene_Kit_Session_...
Redhead asked 29/10, 2015 at 13:31
1
I am implementing a video app, that lists video and able to stream or watch local videos. If I try to watch videos with my player that inherits from AVPlayer, a lot of threads initated, after 15-20...
Graiggrail asked 7/10, 2015 at 17:41
4
Solved
I'm trying to add AVPlayerLayer to UIView
self.player = AVPlayer(URL: NSURL(fileURLWithPath: path!))
self.playerLayer = AVPlayerLayer(player: player);
self.playerLayer.videoGravity = AVLayerVid...
Dannie asked 16/2, 2016 at 21:31
3
Solved
Sometimes AVPlayer fails with AVPlayerItemStatusFailed and after that failure occurred, AVPlayer continues to failed with AVPlayerItemStatusFailed. I tried to clear the AVPlayer instance and create...
Jacinto asked 24/5, 2014 at 22:46
1
Solved
I'm trying to set the size/frame of the video I'm showing in my view, using AutoLayout. But I can't figure out how to do it properly. This is the code for my view:
import UIKit
import AVKit
class...
Represent asked 5/1, 2018 at 15:45
1
Solved
I'm working an application displaying "n" number of videos on full screen using AVPlayer & AVPlayerLayer classes on UICollectionView Cell with horizontal scroll. I was set paging enabled on UIS...
Fiertz asked 17/6, 2017 at 9:59
3
I have a local video playing using AVPlayer and AVPlayerLayer (Swift, iOS 8.2), and i need to resize the AVPlayerLayer (introPlayerLayer) when its parent view (introView) is resized, including on o...
Chessy asked 12/3, 2015 at 1:6
5
Solved
I'm new to ios, i have an app which contain online audio player. i need to get total duration for the audio. i have tried lot but all codes returns NaN or 0 duration. What is the best way to get to...
Aucoin asked 26/5, 2017 at 14:36
5
Solved
I write custom player from AVPlayer for video playback. According to Apple docs set the video layer:
self.player = [IPLPlayer new];
self.player.playerLayer = (AVPlayerLayer *)self.playerView.la...
Camm asked 14/5, 2013 at 17:8
0
I am writing an app that need display different video according to the selection of the user. When the user select a video, the function playVideo will be called. And after the video finish playing...
Centaur asked 9/2, 2017 at 13:36
3
I'm switching from MPMoviePlayerController to AVPlayer as I need finer grained control over video swapping. The .mov file I was playing with MPMoviePlayerController played fine, but after switching...
Intendancy asked 28/5, 2013 at 22:37
2
Solved
I am writing an application using Swift to view surveillance cameras via HLS. I have the basic device list working and I am able to segue to the Live view and display the stream however, I need to ...
Indignation asked 31/8, 2016 at 21:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.