Have you set up your Info.plist correctly?
You'll need
<key>AllowInternetPlugins</key>
<true/>
in it in order to use the quicktime plugin.
On 5/13/05, Guy Brooker <email@hidden> wrote:
>
> Hi,
>
> I tried to play a sound from my widget (a button click), but surprisingly,
> while it works perfectly in Safari, it doesn't work in Dashboard
>
> Here is a test script, which plays the sound file click.wav when the button
> is pressed.
>
> <html><head><style>@import "HelloWorld.css";</style>
>
> <script>
> function playSound(soundobj){
> var thissound=document.getElementById(soundobj);
> thissound.Play();
> }
> </script>
>
> </head><body><img src="Default.png">
>
> <embed src="click.wav" autostart=false hidden=true id="sound2"
> enablejavascript="true">
>
> <span class="helloText">Hello
> <form>
> <input type="button" value="Play Sound" onClick=" playSound('sound2')">
> </form>
>
> </span></body></html>
>
> In Safari, the sound is played, is Dashboard, I get the following error on
> the console:
>
> (event handler):Value undefined (result of expression thissound.Play) is not
> object.
> 2005-05-13 08:58:22.246 DashboardClient[1635] (com.apple.widget.helloworld)
> file:///Users/gbrooker/Documents/src/Dashboard/Hello%20World.wdgt/HelloWorld
> .html: Value undefined (result of expression thissound.Play) is not object.
> (line: 23)
>
> Two questions... Why the inconsistency between Safari and Dashboard, and how
> can I play small sound files in Dashboard ?
>
> Cheers
> Guy
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
This email sent to email@hidden