Hi Stefan,

Yes the included audio example works fine on both Linux and Windows
using the "drums.mp3" file included with the gadget and also with mp3
files from other online locations (ie. an mp3 hosted on a server).
It's just Shoutcast streams it doesn't seem to like!

When modifying the audio example to point to a shoutcast stream (the
encodeURLComponent function has to be removed too for it to work), the
gadget does seem to open the stream, but the "play" button remains in
the pressed position and although my machine is recieving the stream,
it never produces a sound. If left for a few minutes, I get a
notification saying that the gadget has stopped responding.

I think the problem might be due to the stream not providing a content-
length, but that's only a theory at the moment!

If you have access to a Windows machine, you can try this yourself by
modifying line 19 of the audio example main.js to:

var AUDIO_CLIP_URI = "http://212.72.165.26:9418/;stream.nsv";;


It looks like I'm going to have to go down the Windows Media Player
route for now, but if there's a solution that enables me to use
framework.audio I'd rather use that.


On Jun 10, 9:35 am, Stefan vd <[email protected]> wrote:
> Hi,
>
> Have you check the sample 'Audio' inside the Google Desktop SDK. (this
> gadget work normal great on Linux and Windows)
>
> If it still doesn't work, you can make a code that if it is 'Linux'
> run the framework audio program code. And if it is 'Windows' run the
> Windows Media Player code inside the gadget.
>
> Kind Regards,
> Stefan Van Damme (aka Stefan vd)
> Gadget Developer
>
> On 9 jun, 23:05, deadman <[email protected]> wrote:
>
> > Hello all,
>
> > I've been developing a shoutcast radio player using the Linux GTK
> > version of Google Gadgets using framework.audio to play the stream.
>
> > This works fine when running on Linux, but when testing on Windows
> > Vista the stream refuses to play. Is this a fault with framework.audio
> > or something else?
>
> > The stream itself plays fine in WMP so should work as far as I
> > understand.
>
> > If anyone has any pointers I'd be very grateful.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to