• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[iOS] How to know when AVPlayer is ready to play its remote url music
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iOS] How to know when AVPlayer is ready to play its remote url music


  • Subject: [iOS] How to know when AVPlayer is ready to play its remote url music
  • From: Tharindu Madushanka <email@hidden>
  • Date: Fri, 3 Dec 2010 15:53:25 +0530

Hi,

I use following code to play a remote url mp3. But I want to know when its
ready to play the music to show up some loading indicator until then.

AVPlayer *player = [[AVPlayer playerWithURL:[NSURL URLWithString:awdioURL]]
retain];

--

How do I update my view when I am using AVPlayer. There's following method,

– addPeriodicTimeObserverForInterval:queue:usingBlock:<http://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html#//apple_ref/occ/instm/AVPlayer/addPeriodicTimeObserverForInterval:queue:usingBlock:>but
I am not sure how to use it in or whether its the right thing. Could
some on kindly help on this.


Thanks,

Tharindu
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [iOS] How to know when AVPlayer is ready to play its remote url music
      • From: Tharindu Madushanka <email@hidden>
  • Prev by Date: Re: Basic HTTP program failed to compile
  • Next by Date: Re: [iOS] How to know when AVPlayer is ready to play its remote url music
  • Previous by thread: Re: Disable toolbar items
  • Next by thread: Re: [iOS] How to know when AVPlayer is ready to play its remote url music
  • Index(es):
    • Date
    • Thread