[iOS] How to know when AVPlayer is ready to play its remote url music
[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