Questions tagged [avplayer]

An AVPlayer object is used to implement controllers and user interfaces for single- or multiple-item playback.

An AVPlayer object is used to implement controllers and user interfaces for single- or multiple-item playback.

3602 questions
2
votes
0 answers

AVPlayer doesn't switch from Audio-Only to Video stream

I'm using AVPlayer to play the HTTP Live stream. Often I observed that AVPlayer switches to Audio-Only mode when the network is Low, but when the network recovers to High, it doesn't switch to Video stream or takes very long to switch to Video…
Vasu N
  • 344
  • 1
  • 2
  • 9
2
votes
1 answer

how to run "3gp, FLV, avi" video format in AVPLAYER or MPMoviePlayerViewController in iOS?

I need to play 3gp, FLV, avi Video file format in my application. I had searched lot about it. Got some library like "FFmpeg" Library. But could not find any sample code for it. Any other ways for it are also appreciated. Does any body have done it…
user4202109
2
votes
1 answer

AVPlayer play SKVideoNode video ,I just can not control the playback

I am using the SpriteKit to play video,this is my code to create the SKVideoNode from AVPlayer: func CreateVideoViewWithAVPlayer(player:AVPlayer) { video = SKVideoNode(AVPlayer: player) let frameLayer=AVPlayerLayer(player: player) …
Yufu
  • 51
  • 6
2
votes
4 answers

iOS play video without audio session

I am trying to play a short video in my app using either a MPMoviePlayerController or an AVPlayer. The problem is (since my video doesn't have any sound) that I do not want to interfere with the sounds being played by other apps in the background. I…
Teo
  • 3,394
  • 11
  • 43
  • 73
2
votes
1 answer

Manage the playhead using remote controls in background audio mode in iOS with AVPlayer

I try to control that the user may advance seconds in song playback. I managed only for users can see the playhead but not interact with it. I am using AVAudioSession in mode with AVAudioSessionCategoryPlayback. AVPlayer and AVPlayerItem _playerItem…
enagra
  • 2,296
  • 1
  • 18
  • 19
2
votes
0 answers

ios Exception [NSException raise:format:]

I have this exception, i know it's related to the AVPlayer but i don't exactly understand to what. (something with the observation, but what???) #0 0x36342c64 in objc_exception_throw () #1 0x29282d74 in +[NSException raise:format:] () #2 …
lilush
  • 33
  • 5
2
votes
0 answers

AVPlayer currentTime wrong

Strange issue here. I'm exporting a video using AVExportSession. It can be composed on of either pre-recorded videos or a video I have captured with an AVCaptureSession. The video rendered from purely a the AVCaptureSession video is reporting a…
Shocks
  • 808
  • 1
  • 9
  • 18
2
votes
0 answers

AVPlayerStatus vs AVPlayerItemStatus uses

Can anyone explain the difference between AVPlayerStatus and AVPlayerItemStatus? and which one to observe using KVO for listening to status when using AVPlayer for playing videos?
Ideveloper
  • 1,467
  • 4
  • 23
  • 44
2
votes
2 answers

AVPlayer have still a delay after status reached "ReadyToPlay"

I want to play mp3 files from my Server, i do the following: NSURL *url = [NSURL URLWithString:item.audioUrl]; AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url]; self.player = [AVPlayer playerWithPlayerItem:playerItem]; self.player…
Davis
  • 1,253
  • 4
  • 17
  • 38
2
votes
1 answer

AVURLAsset tracks is empty, but video/audio is playable

I have video that lives here: http://195.16.112.71/adaptive/66aebabb-2632-44fc-abf1-df29bca6b941.video/66aebabb-2632-44fc-abf1-df29bca6b941.m3u8 Ffmpeg says that this video has 5 tracks and it's correctly. But if I use AVURLAsset with that link it…
Paltr
  • 135
  • 1
  • 8
2
votes
1 answer

Terminated due to Memory Pressure when using iOS AVPlayer

In my iOS application, I am running a YouTube video as a loop with the help of iOS YouTube helper library. But I am not giving the opportunity to play the video at it's full length but after 20 seconds I am queued the same video again like below. -…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
2
votes
2 answers

AVPlayer - toggle between fullscreen

I have a tableview where one of the cells houses a view on which AVPlayer renders a video. Works fine. What I'd like to do is allow the user to rotate the device and have the AVPlayer then render to another fullscreen view. Any pointers on how to do…
joelg
  • 1,094
  • 9
  • 19
2
votes
0 answers

Getting AVPlayer CC/SAP List

I am trying to get a list of all the available closed captions and SAP assets for a given stream but I havent been able to find a way to do this. I have tried outputting availableChapterLocales, availableMetadataFormats, and trackGroups which didnt…
Pat
  • 649
  • 1
  • 8
  • 24
2
votes
2 answers

How to set metadata of sound track (artwork, album, etc.) on the lock screen iOS?

I'm trying to develop a simple audio player app for iPhone or iPad. I'm made working on the background mode and controlling playback on the lock screen, but I can't set data about current music track (artwork, album, etc.) on the lock screen like it…
d0ping
  • 462
  • 4
  • 16
2
votes
0 answers

AVAssetResourceLoaderDelegate setup issue

I have a weird issue when trying to setup AVAssetResourceLoaderDelegate. When using this code it works most of the time on a device but it doesn't work on the simulator at all: NSURL *url = [NSURL URLWithString:@"xxx://name"]; AVURLAsset *asset =…
Michal Pietras
  • 442
  • 5
  • 16
1 2 3
99
100