¡@

Home 

2014/10/15 ¤U¤È 10:04:29

iphone Programming Glossary: avplayer

Adjusting the volume of a playing AVPlayer

http://stackoverflow.com/questions/3268949/adjusting-the-volume-of-a-playing-avplayer

the volume of a playing AVPlayer The only method for getting a volume change on currently playing AVPlayer items is to follow this process Offload the currently.. the volume of a playing AVPlayer The only method for getting a volume change on currently playing AVPlayer items is to follow this process Offload the currently playing AVPlayerItem's asset Grab the current playback time for that.. getting a volume change on currently playing AVPlayer items is to follow this process Offload the currently playing AVPlayerItem's asset Grab the current playback time for that AVPlayerItem Load the asset into a new AVPlayerItem Replace the current..

iPhone Smooth Transition from One Video To Another

http://stackoverflow.com/questions/3410003/iphone-smooth-transition-from-one-video-to-another

for our reps and we want this to look as professional as possible. CURRENT THOUGHT If there was some sample code for AVPlayer it would seem I could use AVVideoComposition to switch between videos But details on how that might happen don't seem to.. this question Steve the short answer is that you are not going to be able to get the kind of results you want using AVPlayer. The h.264 video logic included in iOS is really great at playing video and video audio together but it really sucks at..

How do I get my AVPlayer to play while app is in background?

http://stackoverflow.com/questions/4771105/how-do-i-get-my-avplayer-to-play-while-app-is-in-background

do I get my AVPlayer to play while app is in background I've done my homework... been reading here the docs googling stackoverflowing... but.. error nil radioAudio setActive YES error nil Then this NSString radioURL @ http xxx.xxx.xxx radio.m3u radioPlayer AVPlayer playerWithURL NSURL URLWithString radioURL retain But as soon as the user hits the home button my sound dies. I also found.. sharedApplication endBackgroundTask bgTaskId bgTaskId newTaskId Right now I have no idea where I should go to make my AVPlayer let the radio sing while the user does other stuff on the phone. I am testing this on an iPhone 4 with 4.2. Building it..

Extract iPod Library raw PCM samples and play with sound effects

http://stackoverflow.com/questions/4796643/extract-ipod-library-raw-pcm-samples-and-play-with-sound-effects

song and manipulate the pitch tempo and apply sound effects such as filters . I have already gone down the route of AVPlayer and AVAudioPlayer which both do not allow very much control over the playback at all. The code below is as far as I have..

Using MPMediaItems with AVAudioPlayer

http://stackoverflow.com/questions/5222464/using-mpmediaitems-with-avaudioplayer

use AVAudioPlayer . EDIT You basically have three options for playing audio from the user's iPod library MPMediaPlayer AVPlayer and AVAudioPlayer . Here are examples for MPMediaPlayer and AVPlayer void mediaPicker MPMediaPickerController mediaPicker.. audio from the user's iPod library MPMediaPlayer AVPlayer and AVAudioPlayer . Here are examples for MPMediaPlayer and AVPlayer void mediaPicker MPMediaPickerController mediaPicker didPickMediaItems MPMediaItemCollection collection MPMediaItem item.. applicationMusicPlayer appMusicPlayer setQueueWithItemCollection collection appMusicPlayer play Play the item using AVPlayer AVPlayerItem playerItem AVPlayerItem alloc initWithURL url AVPlayer player AVPlayer alloc initWithPlayerItem playerItem..

AVPlayer streaming progress

http://stackoverflow.com/questions/7691854/avplayer-streaming-progress

streaming progress I'm successfully using AVPlayer to stream audio from a server and what I want to do now is to show a.. streaming progress I'm successfully using AVPlayer to stream audio from a server and what I want to do now is to show a custom UISlider who shows the progress of the buffering... what I want to do now is to show a custom UISlider who shows the progress of the buffering. Something like this With AVPlayer there doesn't seem to be a way to get the total download size or the current downloaded amount for the audio file only the..

AVPlayerItem fails with AVStatusFailed and error code “Cannot Decode”

http://stackoverflow.com/questions/8608570/avplayeritem-fails-with-avstatusfailed-and-error-code-cannot-decode

fails with AVStatusFailed and error code &ldquo Cannot Decode&rdquo I'm running into a strange issue I hope someone.. by combining a video from the user's photo library and an audio file from the app bundle. I then use an AVPlayer and AVPlayerItem to play the video back to the user using a custom video player I made. Each time a new composition is created.. by combining a video from the user's photo library and an audio file from the app bundle. I then use an AVPlayer and AVPlayerItem to play the video back to the user using a custom video player I made. Each time a new composition is created the assets..

Playing AVAudio from iPod Library while device is locked

http://stackoverflow.com/questions/11515883/playing-avaudio-from-ipod-library-while-device-is-locked

my screen is ALREADY locked. This ultimately results in no music being played. iphone objective c ios avaudioplayer avplayer share improve this question You need to tell your player to listen for control events void viewDidAppear BOOL animated..

remoteControlReceivedWithEvent not Called in appDelegate

http://stackoverflow.com/questions/11862317/remotecontrolreceivedwithevent-not-called-in-appdelegate

not Called in appDelegate I'm having problem to control the iPhone controls with my avplayer. if I put the function void remoteControlReceivedWithEvent UIEvent event in the view controller that responsible for playing..

Rewind AVPlayer by 5 seconds

http://stackoverflow.com/questions/15113251/rewind-avplayer-by-5-seconds

play music AVPlayer playerWithPlayerItem playerItem retain music play Thanks for your answers... iphone ios stream avplayer share improve this question NSTimeInterval currentPlaybackTime return CMTimeGetSeconds self.playerView.player.currentItem.currentTime..

Is it possible to play video using Avplayer in Background?

http://stackoverflow.com/questions/15470452/is-it-possible-to-play-video-using-avplayer-in-background

mt 8 ign mpt uo 3D2 SpeedUpTV https itunes.apple.com ua app speeduptv id386986953 mt 8 iphone ios ios5 video avplayer share improve this question This method supports all the possibilities Screen locked by the user List item Home button..

iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream

http://stackoverflow.com/questions/3361619/iphone-ios4-replacing-ipod-dock-icon-whilst-playing-background-audio-stream

to pause and resume their streams. Does anyone know how to do this Thanks iphone ios4 streaming avaudioplayer avplayer share improve this question It's easy you have to respond to the Remote Control Events. This also lets you control your..

Pre-buffering for AVQueuePlayer

http://stackoverflow.com/questions/4218090/pre-buffering-for-avqueueplayer

suggest this I'm asking mostly if anyone has observed this kind of behavior or not. iphone objective c avfoundation avplayer share improve this question Ok I've looked over this problem again and written some code to check out AVQueuePlayer..

How do I get my AVPlayer to play while app is in background?

http://stackoverflow.com/questions/4771105/how-do-i-get-my-avplayer-to-play-while-app-is-in-background

this on an iPhone 4 with 4.2. Building it for 4.0. Anyone have any suggestions what I should do iphone ios background avplayer share improve this question Had the same problem but found a solution for this.. Look here https devforums.apple.com..

Knowing when AVPlayer object is ready to play

http://stackoverflow.com/questions/5401437/knowing-when-avplayer-object-is-ready-to-play

ie how can i make sure the AVPlayer is not just created but also ready to play iphone avfoundation audio streaming avplayer share improve this question You are playing a remote file. It may take some time for the AVPlayer to buffer enough data..

How to play movie files with no file extension on iOS with MPMoviePlayerController or AVPlayer?

http://stackoverflow.com/questions/5501670/how-to-play-movie-files-with-no-file-extension-on-ios-with-mpmovieplayercontroll

supported. I know that file is a valid m4v file as when I rename it all is fine. iphone ios mpmovieplayercontroller avplayer share improve this question If the player can't guess the file format you need to check that the CDN sends the right..

Check play state of AVPlayer

http://stackoverflow.com/questions/5655864/check-play-state-of-avplayer

Is there a way to know whether an AVPlayer is playing has stalled or reached the end iphone ios avfoundation avplayer share improve this question To get notification for reaching the end of an item via Apple NSNotificationCenter defaultCenter..

Caching with AVPlayer and AVAssetExportSession

http://stackoverflow.com/questions/6259095/caching-with-avplayer-and-avassetexportsession

Caching videos to disk after successful preload by MPMoviePlayerController iphone ios video streaming avfoundation avplayer share improve this question I'm not using the iOS 4.3 SDK yet but I'd be curious to know the value of mediaAsset.exportable..

HTTP Live Streaming with AVPlayer in iOS 4.0?

http://stackoverflow.com/questions/6431517/http-live-streaming-with-avplayer-in-ios-4-0

code to work on 4.0 The Runtime Requirements say it should work on iOS 4.0 or later . Thanks iphone ios avfoundation avplayer http live streaming share improve this question This is a bug in 4.0 but I found a workaround. Here is the correct way..

AVPlayer with one video tracks and multiples audio tracks

http://stackoverflow.com/questions/6735979/avplayer-with-one-video-tracks-and-multiples-audio-tracks

addSublayer layerVideo player play But nothing append. Thanks for your help and sorry for my English iphone avplayer avmutablecomposition avcomposition share improve this question I think this line NSURL audioURL NSURL URLWithString..

No AVPlayer Delegate? How to track when song finished playing? Objective C iPhone development

http://stackoverflow.com/questions/6837002/no-avplayer-delegate-how-to-track-when-song-finished-playing-objective-c-iphon

the icon off before the music actually begins even though it's after the audioPlayer play action. iphone objective c avplayer share improve this question Yes the AVPlayer class does not have a delegate protocol like the AVAudioPlayer. You need..

How can i set volume with amplification in app with AVPlayer class?

http://stackoverflow.com/questions/7444898/how-can-i-set-volume-with-amplification-in-app-with-avplayer-class

and Volume does not increase. What are the other ways to increase sound with AVPlayer iphone objective c core audio avplayer share improve this question Check out this link. You cannot set volume greater than 1.0 for AVPlayer. If you increase..

AVPlayer streaming progress

http://stackoverflow.com/questions/7691854/avplayer-streaming-progress

for the audio file only the current playing time and total play time. There's any workarounds for this iphone ios avplayer share improve this question I am just working on this and so far have the following NSTimeInterval availableDuration..

AVPlayerItem fails with AVStatusFailed and error code “Cannot Decode”

http://stackoverflow.com/questions/8608570/avplayeritem-fails-with-avstatusfailed-and-error-code-cannot-decode

times with no problem so all of a sudden it fails So if anyone has a clue please let me know. iphone ios avfoundation avplayer share improve this question Ok everyone I have the answer to this straight from Apple. I used one of my developer TSI..

How to measure noise or sound and displays in dB(A) in iphone?

http://stackoverflow.com/questions/6183599/how-to-measure-noise-or-sound-and-displays-in-dba-in-iphone

objective c audio meter share improve this question If you use AVAudioPlayer you can use this method AVAudioPlayer avPlayer ... avPlayer play... avPlayer averagePowerForChannel 0 avPlayer averagePowerForChannel 1 From Apple's doc float averagePowerForChannel.. meter share improve this question If you use AVAudioPlayer you can use this method AVAudioPlayer avPlayer ... avPlayer play... avPlayer averagePowerForChannel 0 avPlayer averagePowerForChannel 1 From Apple's doc float averagePowerForChannel.. improve this question If you use AVAudioPlayer you can use this method AVAudioPlayer avPlayer ... avPlayer play... avPlayer averagePowerForChannel 0 avPlayer averagePowerForChannel 1 From Apple's doc float averagePowerForChannel NSUInteger channelNumber..

How can i set volume with amplification in app with AVPlayer class?

http://stackoverflow.com/questions/7444898/how-can-i-set-volume-with-amplification-in-app-with-avplayer-class

in iPhone the actual sound is very low compare to the song played in iPod Library. My code goes as below AVPlayer avPlayer AVPlayer alloc initWithURL songURL avPlayer play How can I amplify sound or increase volume while playing with AVPlayer.. compare to the song played in iPod Library. My code goes as below AVPlayer avPlayer AVPlayer alloc initWithURL songURL avPlayer play How can I amplify sound or increase volume while playing with AVPlayer Edit I had also gone through this question and..