milton howe

I am trying to embed an mp3 file into a gadget and then play it using a windows media player.
it seems to be not loading the file. when i context-click on the media player i get:

Windows Media Player cannot play the file because the specified protocol is not supported. If you typed a URL in the Open URL dialog box, try using a different transport protocol (for example, "http:" or "rtsp:").


the protocol, of course, is x-gadget://

can anyone recommend how i might be able to accomplish this
thanks,
milton.


Re: Sidebar Gadget Development WMP problem loading file embedded in gadget

Jonathan Abbott

You shouldn't need to specify a protocol for a file. Just the file with the full pathname should do the trick.




Re: Sidebar Gadget Development WMP problem loading file embedded in gadget

milton howe

clarification: i did not supply a protocol on the url parameter in the embedded object. i simply put the path to the filename within the gadget assembly, the same as i would for the src attribute on an <img> tag or a <script> tag.

the x-gadget:// protocol appears when i right-click on the WMP control and select properties.




Re: Sidebar Gadget Development WMP problem loading file embedded in gadget

Jonathan Abbott

Sorry, didn't realise you were using .url

Try "file://". If that doesn't work, create a playlist and add your media to it. I'll show you how to do this if you "file://" doesn't work.