Questions tagged [avplayeritem]
277 questions
0
votes
1 answer
Release older frames stored with AVPlayterItemOutput
I have an AVPlayerItem used to play a remote HLS stream, and an AVPlayerItemOutput object added as an output. As it plays, my phone's wired memory usage goes up and up until I simply get a memory crash. It seems like the output is retaining all of…

meisel
- 2,151
- 2
- 21
- 38
0
votes
1 answer
AVPlayerViewController play/pause issue in iOS
I am working on the iOS application. This application base on the NEWS media.
I am playing the small video of highlighted News. I am facing a stranger problem with AVPlayerViewController.
When i play the video everything is fine. When i go to…

Sankalap Yaduraj Singh
- 1,167
- 2
- 14
- 32
0
votes
0 answers
AVPlayerItemFailedToPlayToEndTimeNotification be posted when and for what
Recently, I am use AVPlayer to play some audio made by someone else.
When I look the AVPlayerItem, I see the AVPlayerItemFailedToPlayToEndTimeNotification and AVPlayerItemDidPlayToEndTimeNotification,
I am confused by failedToPlayEnd, who can tell…
user6218274
0
votes
1 answer
swift AVPlayerItemDidPlayToEndTimeNotification not work
I create a class named DecryptAudioPlayer,it inherit NSObject,this class refrenced a AVPlayer,and observe the notice AVPlayerItemDidPlayToEndTimeNotification when init.like below:
override init() {
super.init()
…
user6218274
0
votes
1 answer
AVPlayerViewController will not dismiss when Notification called
My Code:
NSURL *videoURL = [NSURL URLWithString:strVideo];
playerController = [[AVPlayerViewController alloc]init];
playerController.player = [AVPlayer playerWithURL:videoURL];
playerController.view.frame = self.view.frame;
…

ragu
- 133
- 2
- 10
0
votes
1 answer
AVPlayerItem never ready to play
I started a new project with a single view and added this code to the view controller:
- (void)viewDidLoad {
[super viewDidLoad];
NSURL *videoURL;
videoURL = [NSURL URLWithString:@"https://s3.amazonaws.com/xxxxxx.mp4"];
AVURLAsset…

Cbas
- 6,003
- 11
- 56
- 87
0
votes
1 answer
How can I pause audio in UIWebView when I play audio use AVPlayer
I have a UIWebView playing music, when I play audio using AVPlayer, they play together.
I try to use AVAudioSession to control this. But not working.
Here is my code
- (IBAction)click:(id)sender {
NSURL *url = [NSURL…

Shadow
- 1
- 2
0
votes
0 answers
AVPlayer file requirements documentation
I have an AVPlayerLayer which has an AVPlayer instantiated in my init method of its parent view controller. Everything works fine and as expected on Simulator and new devices, but on older iPad 2's and on iPod touch, the video does not play.
I saw…

Erik
- 1,246
- 13
- 31
0
votes
1 answer
tvOS AVPlayerItem external artwork metadata size
Ok so I’m adding an image to the Info tab of the AVPlayerViewController as such:
let artworkMetadataItem = AVMutableMetadataItem()
artworkMetadataItem.locale = NSLocale.currentLocale()
artworkMetadataItem.identifier =…

David Baez
- 1,208
- 1
- 14
- 26
0
votes
1 answer
Why the avplayer time is incorrect in iOS
My company need a video app , so i start working yesterday .
You can see this code of avplayer :
// to get palying time
-(void)addProgressObserver{
__weak typeof(self) weakSelf = self ;
//这里设置每秒执行一次
[self.player…

user5465320
- 719
- 2
- 7
- 15
0
votes
0 answers
Mp3 file is not working in swift but it is working online stream
let isMediaSongExists:Bool = Utilities.isMediaExists(songInfo.songURL)
if(isMediaSongExists){
let localMediaPath = Utilities.getMediaLocalPath(songInfo.songURL)
print("File Path =…

Arulmurugan M
- 3
- 2
0
votes
3 answers
How to set AVPlayerItem to nil when observer does not complete
I add a observer named 'status' into AVPlayerItem.
Send the observer then set AVPlayerItem to nil when the observer does not complete
I have remove the observer when dealloc AVPlayerItem
Get the following error:
NSInternalInconsistencyException',…

Leo
- 835
- 1
- 12
- 31
0
votes
0 answers
when Avplayer pause buffering stop after ~60 seconds
When i call pause() method on an Avplayer istance buffering continue but after ~60 seconds it stop.
I have tested on iOS 9 and 8.
On iOS 9 i have been setted this:
if #available(iOS 9.0, *) {
…

Andrea Bozza
- 1,374
- 2
- 12
- 31
0
votes
1 answer
KVO hassles whilst trying to stream-play a video using AV Foundation
Goal:
I'm ultimately trying to read an external video file (.mp4, .mpg...); within an instance of AVPlayerViewController.
But I'm having all sorts of KVO problems.
AVPlayerViewController's KVO observer is always firing, even though I didn't…

Frederick C. Lee
- 9,019
- 17
- 64
- 105
0
votes
2 answers
How to reinit AVPlayerItem?
I am initializing AVPlayerItem with "initWithUrl:" method.
Issue is that when initialization is interrupted (e.g. connection is lost)
Let's say we have following:
self.avPlayerItem = [[AVPlayerItem alloc] initWithUrl:url];
1.
What should be done?…

travdu
- 331
- 3
- 9