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

2010-12-03 Thread Tharindu Madushanka
Hi, Got it finally working with Blocks. But I am not sure whether this is the right way.. Is there any better way to determine playing started or not ?? // add time observer // obs (id) defined in class header obs = [[player addPeriodicTimeObserverForInterval:CMTimeMake(1, 3)

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

2010-12-03 Thread Tharindu Madushanka
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