Play Audio URLs from the iPhone Command Line
You never know when instant karma is gonna getcha. Take my playaudio application. Yesterday, I was chatting with some developer buddies about maybe putting together an Internet radio application and discussing the fact that the Celestial iPhone framework is essentially QuickTime repackaged. While talking, I decided to try using my existing playaudio app with a URL rather than a local audio file. So I typed the following at the iPhone command line:
playaudio http://steiner.math.nthu.edu.tw/ne01/tjy/music/06.I%20Just%20Called%20To%20Say%20I%20Love%20You.mp3
And...it worked. Just like that, the instrumental-only cover began to play back through my iPhone speakers. Apparently, Apple has merged the concept of "local file" and "URL" a lot more closely than I'd thought. I haven't had any luck connecting to .pls or any other live radio feed but if you'd like to play back Internet-based files, playaudio works just fine.
Share
You never know when instant karma is gonna getcha. Take my playaudio application. Yesterday, I was chatting with some developer buddies...
Add a Comment
Guys, please take a look at this demo video of our application and watch for the alpha in a week or so, streaming audio and video from the iphone is not a problem.
we will do it two ways
1) upnp media servers
2) direct url's advertised using dns-sd protocol (aka bonjor)
mooncatventures.blogspot.com
the above url you want us to cut and paste didn't seem to show up right when loading this page in Safari. Just in case anyone else has the problem, here is the link, which worked for me as well.
http://steiner.math.nthu.edu.tw/ne01/tjy/music/06.I%20Just%20Called%20To%20Say%20I%20Love%20You.mp3
This might be useful if the Terminal.app for the iPhone had a working delete key instead of inserting ^H everytime.
August 17 2007 at 5:03 PM Report abuse Permalink rate up rate down ReplyThe iPhone currently has no support at all for RTSP or any other streaming media protocol.
Playing media files (mp3, mp4 etc) from a URL requires that the web server support position-able http get requests. The iPhone then uses this ability to provide a position in the file and a size to request roughly 32KB chunks (on WiFi, smaller on EDGE) of the file to play.
This lets the iPhone dodge a big chunk of cranky code to get working on a heavily power managed battery powered mobile device.
This didnt work on our iPhone - any ideas?
http://www.askTheAdmin.com
If it wasn't for Installer.app I wouldn't even know you had a package of utils. Any documentation on them?
August 17 2007 at 1:25 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



6 Comments