Topic: VIOLET : API/Sending a URL to a Nabaztag/tag

API/Sending a URL to a Nabaztag/tag.

The API has gotten a boost in functionality and may now send URLs of MP3 files or feeds to a tag/tag.

This new feature allows you to integrate your applications with MP3, podcast and webradio players. Now you can create application for your exceptionally talented rabbit with streaming audio !

How does it work ?

If you have a tag/tag, you can use the API to send him MP3 hyperlinks to make him play podcasts or webradio.

All you have to do is call or include your application in the URL http://api.nabaztag.com/vl/FR/api_stream.jsp with the following settings :

sn-    Serial number of the Nabaztag/tag that

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

And it even works! Too cool. big_smile

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I'd be interested to hear more about this from a tag owner.  I've got tonnes of questions...

1.  Is the mp3 being delivered through violet or is it your rabbit getting the URL and 'dialling out' to get the file?
2.  Is it true streaming/progressive download or download-then-play?  What formats are supported?
3.  Is there any file size limit?

This could be quite cool from a developer point of view.  I may have to upgrade HenryRabbit soon.

Send my Nabaztag a message: HenryTheSecond

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Govan,

Calsim8 posted this notice two places, so there's some discussion over on this thread covering those issues.

My tests have shown it has better audio fidelity and less 'hiccups' if you point it directly to an MP3 file and not a Shoutcast server.

Casmin8, a question for you. Since the tag is doing all the work, playing these files back, is there any plan or willingness for Violet to release the source code and/or specification to create our own api_stream.jsp type interfaces? Or, will be be forced to continue working to reverse engineer these things?

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Adding to your question, will v1's be able to do this using the community proxy / opennab, oneday?

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I've been testing this with my tag/tag and it simply does not work. I've tried numerous MP3 files as well as a shoutcast stream. When I call

api_stream.jsp

, it gives me a response message of

WEBRADIOSENDYour webradio has been sent

which informs me that it was successful.

The tag/tag does nothing, and if I check my messages online, I see a "WEB RADIO" message in the archive.

MEH!

()_()
(._.)

bunnywarez.com

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Just tried it with my tag/tag and it worked fine as long as the urlList parameter pointed to something with a filename that ended in .mp3, haven't figured out how to get a shoutcast stream to work yet.

Try this, replacing the ????s with your tag's serial no(mac address) and token.

http://api.nabaztag.com/vl/FR/api_strea … s/9995.mp3

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

A man goes to the doctor and says....nice.

Shoutcast streams can be played. Save the PLS file to your local file, then open it in your favorite text editor. Use that IP address and port in your URL and you should be able to stream.

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

It works...sort of....It's frustrating that if it has to buffer..it just stops....and you can't replay again without posting back to the API

I tried saying 'Radio' to see if it would replay the last radio station but no...just back to french radio.

NabName: Mattie

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Try this one then...

Technically, it should work. Right?

http://api.nabaztag.com/vl/FR/api_strea … heLove.mp3

I tried the URL you gave me, and input my tk & sn. I got a confirmation reply. Looking at my messages online, I see that it was immediately archived, but never played.

Last edited by bunnywarez (2007-01-25 22:02:38)

()_()
(._.)

bunnywarez.com

11

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Weird, bunnywarez, I couldn't get your link to play. Try this one, which is the Penn Jillette show podcast.

http://api.nabaztag.com/vl/FR/api_strea … /99785.mp3

Or this one, which is the SomaFM Secret Agent stream...

http://api.nabaztag.com/vl/FR/api_strea … 6.228:8000

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Bunnywarez, it worked for me, it does put gaps in it though.

Nabzname - FrankTheBunny
Feel free to add me and send some messages!

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

mmm...more French radio. Anyone know how i'd pick up radio 1 on this thing? interestingly, it's saving the cast as a message. nose is purple, if i press once, he tunes right back in again!
Very cool. Now let's get some english station addresses please!

Nabzname - FrankTheBunny
Feel free to add me and send some messages!

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I wonder if it is the compression used in the files. I typically compress my files 256 VBR, so that could have something to do with it. I'll have to make some test files and see if I can figure out a baseline on MP3 playback.

()_()
(._.)

bunnywarez.com

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

the mp3 podcasts from the bbc stream perfectly

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I tried the FreeFM URL and the bunny's tumy goes solid red, the nose blinks blue, the ears rotate, the tummy flashes a light blue/white, the nose goes solid blue and the belly goes soild violet, the ears go back to their original position and then nothing else.

()_()
(._.)

bunnywarez.com

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I tried the streaming audio link (bbc?) http://207.200.96.228:8000 and that seemed to work out okay.

So, I suppose it partially works, which is not ideal, but I can only guess that my bunny could use a firmware upgrade or something.

()_()
(._.)

bunnywarez.com

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

the problem has been solved!

So, it seems that the little bunny and/or the api cannot resolve domain names properly. I tested all of this over and over again and I finally got it to work once I input the IP address of the domain instead of the domain name. I got a stream to work as well as a standard MP3. The MP3 was encoded at 160kbps and had fairly steady skipping but was tolerable given the fidelity of the bunny, itself.

I'm a happy bunny, once again.

()_()
(._.)

bunnywarez.com

19

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Ah, that explains it. We've been so quick to have people put the IP address of the Violet server into the bunny, but now the Nabs need to have a working DNS server if they're going to connect to all these radio and MP3 files. Good work!

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

I decided to stick my bunny into blue mode to check some things out and discovered that I left the DNS field blank in the advanced settings section. I filled it in and tested it out and that allowed the bunny to resolve domains and play the MP3s. I'm now curious if doing this will also correct the violet server domain resolution problem.

FWIW, it took me a while to configure the bunny and I had to use the advanced settings and use a static IP address instead of DHCP. When I took nabs traveling with me, I forgot to reset the DNS entry when I returned home.


I also want to thank everyone in this forum for being so helpful while I struggled to figure this out. Hopefully these trials will make other peoples' experiences all the more better.

()_()
(._.)

bunnywarez.com

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Govan wrote:

1.  Is the mp3 being delivered through violet or is it your rabbit getting the URL and 'dialling out' to get the file?

It's the rabbit which dials out...

Govan wrote:

2.  Is it true streaming/progressive download or download-then-play?  What formats are supported?

It's true streaming, I cannot tell you which formats are supported though. Trial and error will tell. wink

Govan wrote:

3.  Is there any file size limit?

No. Although speed is an issue. As others have pointed out: your bunny will "hiccup" alot if the bitrate is too high.

When I get home I'll try to test the following:
1. Request from my webserver to wherever the mp3 is located.
2. Stash the mp3 on my local webserver.
3. Tell Violet's API to tell my bunny to get the (now locally hosted) mp3.
4. See if the bunny plays the mp3... Which would eliminate the speed/hiccup issue. Or so I think?

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Sorry to have to ask this, but im not sure how you are running the api address?
Just punch this into any browser with the right token and mac address and link to a file and it will play?

Noob
Lincoln

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Frank now seems to be behaving oddly. Streaming MP3 he will only play 2 secs and then stops at the moment! if i use the Radio under voice recognition, he will go on forever.
I played the above Mp3 file, he played a tiny bit then stopped. The first time I got him to stream virgin for half an hour or so, now he won't go past 30 secs.
Has any restriction been put on these? I tried the ones listed by Oops in the directory and got no sound...just spinning.
I don't know whats going on? Anybody else having problems?

Nabzname - FrankTheBunny
Feel free to add me and send some messages!

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Tried that spy one above and it's working fine?????

Nabzname - FrankTheBunny
Feel free to add me and send some messages!

Re: VIOLET : API/Sending a URL to a Nabaztag/tag

Hi guys,

The radio is working fine for me, although I do get hiccups where the rabbit loses the stream due to lack of bandwidth. I guess that the higher quality the stream, the more bandwidth it uses, the more likely the signal will drop out.

I am sharing usage of home wireless internet with my brother, who is a mad gamer. So I only get good radio when he's not playing!!!!!

Also bear in mind that if you archive or delete your 'message' with the radio link in your 'messages inbox' folder on nabaztag.com, the radio will stop playing.

The super-chilled hypnotherapist's rabbit.
Nabname: Oops
I'm friendly so please send me a message!