Current location: Brighton, UK

Twit O'Gram Player

Posted on Monday, June 25, 2007 @ 01:18 CET

Dave Winer had an idea that jumped at me while reading through my list of feeds that really peaked my interest. Its quite simple really, mixing podcasting and Twitter in an interesting way. Basically you record a short audio snippet (a max file-size of 200kb is Dave's suggestion), upload it somewhere and then post that URL to Twitter. He's already set up an XML-RPC service to do parts of this automagically, including documentation.

Anyways, I whipped up a quick player to keep track of the MP3's being posted to the twitogram user on Twitter. It should appear below if you have Flash 9:

The "standalone" is here: http://twitogram.paulofierro.com/

Now the interesting part is building the client. First you need to get the audio. You could record within the Flash player itself, but for that to work you need to have a Flash Media Server available (this is what Odeo was doing if I remember correctly), but Red5 (the open-source solution to FMS) might be able to do this. However, it currently states that Red5 will only record an FLV client stream, though you might be able to splice the audio stream from that somehow.

Now if you already have the MP3 file on your local disk you might be able to read this from the local file using the ByteArray API - I really need to play with this feature of the Flash player. Otherwise you'd have to upload this to some server first and get the bits via Perl/PHP but that's just wasting bandwidth and I think ByteArray should work.

From there its simply an XML-RPC call to the service and you're done. How cool is that?

I'll have to figure out if I can get Red5 up and running on my MediaTemple server tomorrow, and test the audio recording. Otherwise there might be someone still hosting FlashCom (FMS1) and dive into ByteArray. Hopefully these will be simple things to accomplish :)

Update (27/06): Added a check for when the sound is done playing and removed the "Twit O'Gram: " prefix from all the messages.

Update (28/07): Updated this post with a link to the new Flex version of the client.

- paulo

Comments:

1
Chris Pirillo writes:
Snazzy! Can you help Dave make a recorder, too? That would definitely speed adoption.

# June 27, 2007 05:06 CET

2
Paulo replies:
Hi Chris, yup I'm working on that right now. I'm shopping around for a Flash Media Server host at the moment in order to get the AV stream sent from the Flash player. I'm thinking something ala Twitterrific (for Mac OS X), but the messages are audio instead of text. Or maybe both? And what about video... hmm :)

# June 27, 2007 12:58 CET

3
2pha writes:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://paulofierro.com/swf/twitogram.swf cannot load data from http://twitter.com/statuses/user_timeline/7123652.rss.
at Twitogram/loadFeed()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

# August 03, 2008 10:47 CET

4
Paulo replies:
Yeah Twitter removed their crossdomain.xml file which makes loading external data from their domain into a SWF impossible unless you use a proxy in the middle.

# August 11, 2008 14:32 CET

5
henry803 writes:
Louis Vuitton has gained and maintained its leading position over the past decades as a brand name of luxuries goods in the world fashion industry. Louis Vuitton Designer handbags symbolize both the social status and noble elegance. It has long been the unparalleled symbol for mainstream fashion. Through our Louis Vuitton web site, you can find latest news of Louis Vuitton purse, handbag and wallet; learn latest information of Louis Vuitton sale events and price adjustment. Serving as your most helpful shopping guide and providing the most comprehensive and detailed buying tips. You may also share your experience and post your opinions by reviewing the items or joining the discussion with other LV fans, sincerely hope you will enjoy your stay.

# July 24, 2009 10:17 CET

Post a comment:

You must have Flash and JavaScript enabled to post a comment.