≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
ccbPlaySound doesn't work in WebGL but works in *.exe even if done after mouseclick event which I know is required for security.
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b]bracer[/b] wrote: ccbPlaySound doesn't work in webgl but works in *.exe. I tried to copy the *.ogg file inside the copperlichtdata folder to see if that helps but it doesn't. Screenshot: https://i.imgur.com/JzSKjjg.png Now the Action inside the IDE itself works but the JavaScript equivalent "ccbPlaySound" doesn't. Now it should be noted that since Coppercube's ccbPlaySound doesn't work in browsers, the HTML 5 way of doing it is extremely easy anyway: var sndSound = new Audio(); sndSound.src = "ByYourSide.ogg"; sndSound.play(); I just want to know if this is an actual bug or it's a known thing and not a bug that ccbPlaySound doesn't work in WebGL, thanks. PS: Incase someone is thinking "Oh it is a hosted issue, you must run the site through a server for the sound to load if you want to use ccbPlaySound in WebGL" I can assure you, I tested: var sndSound = new Audio(); sndSound.src = "ByYourSide.ogg"; sndSound.play(); Pure HTML 5 code without running off a hosted server and it works perfectly so there is something really wrong with ccbPlaySound for WebGL.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact