[Sugar-devel] Sugar Web Activity Sound

Sam Parkinson sam.parkinson3 at gmail.com
Mon Jun 23 06:15:53 EDT 2014


Hi Kevin,

Are you sure the api your using is compatible with gtkwebkit2 (the web
engine sugar uses)?

Try installing 'epiphany' (aka. Web) outside osbuild.  Epiphany also uses
gtkwebkit2 - so if it works in Epiphany it is a bug is sugar or osbuild.
(I wouldn't be surprised if it doesn't work - gtkwebkit2 is not as good as
firefox or chrome)

Sam
On Jun 23, 2014 7:53 PM, "Kevin Kreuzer" <kevin.kreuzer90 at icloud.com> wrote:

> Hello
>
> I am developing a Sugar Web Activity.
> I have installed osbuild on an Linux Fedora to have a full Sugar
> environment.
>
> In my application I want to include sounds. If I visit a website with the
> browser in Sugar I am able to play sounds. I have already written the code
> for the sound.
> This code looks like this:
>
> var backgroundmusic = new Audio("");
> document.body.appendChild(backgroundmusic);
> backgroundmusic.src = „blabla.ogg"
> backgroundmusic.play();
>
> Everything works perfectly fine if I start my application with Sugarizer
> in a Web Browser by double clicking on the index.html.
> But if I run my application on Sugar it doesn’t work. If have tried now
> for a few days and I am always getting the same result.
>
> Am I missing any configuration or is there something wrong with my
> installation?
>
> Thanks for the help
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140623/17609414/attachment.html>


More information about the Sugar-devel mailing list