avplayeritem Questions

7

Solved

I am using an AVQueuePlayer in my app. I have a two swipe gestures to skip to next and skip to previous avplayeritems. Right now to do skip to next I am just calling advanceToNextItem on the avqueu...
Oenone asked 24/1, 2016 at 3:21

3

Solved

I am observing KVO AVPlayerItemNewErrorLogEntryNotification of the AVPlayer and I find the following error: errorStatusCode:-12645 errorDomain :CoreMediaErrorDomain errorComment:Internal erro...
Krystin asked 7/3, 2016 at 23:33

4

Solved

I have an AVPlayerViewController which I initialize with an AVPlayer and some AVPlayerItem (iOS 10, Xcode 8, Objective C). The AVPlayerViewController is presented "inline" inside some subview, and ...
Glimmering asked 25/12, 2016 at 20:56

2

I explored other answers on community and tried this - player = AVPlayer() player.volume = 0.0 player.actionAtItemEnd = AVPlayerActionAtItemEnd.None addPlayerLayer() let asset = AVAsset.init...
Esquiline asked 24/1, 2017 at 12:43

1

I was implementing a video player using AVPlayerViewController. it showing quick time logo on iOS 11 devices while streaming the video. How to remove this? I need to use a custom image as placehol...
Crankpin asked 1/12, 2017 at 9:29

2

Solved

I am trying to fetch bit rate at which the AVPlayer is playing the video stream . I tried with observed bit rate property of AVPlayerItemAccessLogEvent , but it gives very high value.After explorin...
Trochilus asked 4/9, 2015 at 21:29

2

Solved

I am trying to create a table view such that I am able to play videos . I am able to do this using AVPlayer and layer. I want to add a custom play and pause button with a slider to the bottom of a...
Ia asked 28/3, 2017 at 7:11

1

Solved

I have a vc that has an AVPlayer inside of it. From that vc I can push on a different vc with another player inside of it and I can keep pushing on more vcs with a player inside them also. After ab...
Chappell asked 22/10, 2020 at 15:18

1

Solved

I found the three ways to play video with URL. let url = "some url" // first way AVPlayer(url: url) // second way let playerItem = AVPlayerItem(url: url) AVPlayer(playerItem: playerItem...
Amputee asked 16/10, 2020 at 9:51

3

Is there a way to convert Data to AVAsset/AVURLAsset or better AVPlayerItem? I found an answer that converts Data to PHAsset and requires saving it first to the desk. Is there a better way?
Angele asked 25/4, 2018 at 0:50

6

I know this question is all over Stack Overflow but still, most of them are old and not related with what I'm going to ask here. So I've got an array with AVPlayerItems and an AVQueuePlayer. At fi...
Probabilism asked 5/6, 2015 at 2:34

6

Solved

I want to start, pause and stop (same as restart) my mp3 File and I'm using AVPlayer. I get the files from a server. To start the song I do: [self.player start]; To pause I do: [self.player pa...
Dantedanton asked 16/9, 2014 at 13:49

1

Since closed-captions rendered by AVPlayer sometimes overlap with other UI components I would like to render cc in a separate view. I am able to turn off AVPlayer's cc rendering by setting closedC...
Suberin asked 24/5, 2016 at 22:23

6

Solved

Here I have a method that adds the video layer to the UIView that I have setup in IB: -(void)loadPlayer{ self.asset = [AVAsset assetWithURL:url]; AVPlayerItem *item = [AVPlayerItem playerItemW...
Eastwards asked 27/10, 2016 at 11:33

1

Solved

func getThumbnailFrom(path: URL?, withCompletionHandler completion:@escaping ((UIImage)-> Void)){ var thumbnail = UIImage(named: "name of Dummy Image") if let url = path{ DispatchQueue.globa...
Porush asked 19/6, 2019 at 6:7

5

Solved

I am creating a simple media player app. My App is crashed when first link is played and I clicked second link in uitableview. - (void)viewDidLoad { [super viewDidLoad]; arrURL = [NSArray array...
Virgo asked 8/10, 2014 at 12:32

1

I'm trying to read the duration of a locally stored audio file using the following code: #import <Foundation/Foundation.h> #import <CoreMedia/CoreMedia.h> #import <AVFoundation/AVFo...
Smug asked 5/10, 2018 at 11:2

2

Playing video with avplayer, listening to the loadedTimeRanges property, playing about 10 minutes of video, avplayer always preload the video, and feel very costly, is there a way to limit the size...
Coricoriaceous asked 1/5, 2017 at 13:44

1

I use AVPlayer to play an audio livestream via internet. I like to recover playback if it was paused for longer than 1 minute. I call player.rate = 1.0 to resume. However if the stream was paused ...
Auctorial asked 26/4, 2016 at 8:9

1

Solved

I'm using an AVPlayer to play a video url. I followed Apple's code to play the video and handle errors: Inside the section that says Respond to A State Change there is a switch statement that has ...
Dissident asked 13/3, 2018 at 3:39

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 have written a code to download HLS video and play it in offline mode. This code works fine for encoded video. Now I have a video which is AES encrypted and we are having custom encryption key fo...
Quartile asked 7/9, 2017 at 13:37

1

Is it possible to play Apple Music files—even the "available offline" ones—with AVPlayer? I've tried the following code to retrieve the URL, but it returns nil: - (void)mediaPicker:(MPMediaPickerC...
Sherry asked 29/9, 2015 at 9:33

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...

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

© 2022 - 2024 — McMap. All rights reserved.