2013/03/31

AVPlayer and AVAudioPlayer on iOS

(Polderpark.Netherlands)
I like the bright color in this picture. Although this photo was taken almost 10 years ago, the image quality is so great that I still can't believe it's taken by a cheap camera at that time.

****
It's easy to play and control local mp3 files by using AVAudioPlayer. However, if someone wants to stream playing mp3 files from the internet, he should try AVPlayer instead.

Spend most of my time trying to find a remote mp3 for testing. Too bad that I just can't even find one. Eventually, I gave up searching on the internet. Instead, I use following python command to create a simple http server locally on my mac:

python -m SimpleHTTPServer
 
 

No comments:

Post a Comment

LIFE

不是很好看。以為 Jake Gyllenhaal 有演出,應該會有點看頭的。 故事是在講一群太空人在太空站上試著培養火星來的休眠單細胞生物,最後愈搞愈大,變得不可收拾的地步。 中間很多故做緊張的情節,但因為張力不夠,再加上配樂又不是很優(也有可能是因為在家看的關係,聲光效...