- This topic has 13 replies, 4 voices, and was last updated 6 years, 8 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2018-02-10 at 6:46 pm #2117bkumanchikCustomer
Is it possible to play sounds with Puzzles?
2018-02-10 at 8:14 pm #2119Yuri KovelenovStaff2018-02-11 at 2:04 am #2120bkumanchikCustomerThanks Yuri
2018-02-12 at 4:31 pm #2139Yuri KovelenovStaff2018-02-13 at 3:10 pm #2143xfish3ParticipantI, too, like a beginner, still have questions.
Yuri, could you make a lesson with an example of creating a simple application on Verge3D? At least for example with one cube, which begins to rotate immediately after loading and one monkey, starting to rotate after clicking on it.
It is very desirable that the lesson be a video. To make it clearer, where to begin the development process.2018-02-13 at 3:14 pm #2145xfish3ParticipantSorry, wrote in the wrong section :)
I asked the same question in the branch https://www.soft8soft.com/topic/animations-from-gltf-file/#post-21442018-02-22 at 6:08 pm #2337bkumanchikCustomerIs there a minimum length for sound in a mobile browser, I have a tick.mp3 sound (a very short tick-like sound) and it plays fine on desktop browsers but the only way I can get it to play on a mobile browser is to first play it in some other way then it will play inside of some puzzle code.
2018-02-22 at 7:03 pm #2338Yuri KovelenovStaff2018-02-22 at 7:25 pm #2340bkumanchikCustomerI tried that (saving it in a variable) didn’t work. weird thing is once it’s played it works from then on.
Brian
P.S. I’m going to buy a personal copy of Verge3D for myself today!
2018-02-23 at 8:57 am #2349Yuri KovelenovStaffBrian, thank you for becoming our customer. I’m posting here the same solution that I sent you via email.
The problem with sound on mobiles lies in security policy now enforced in all mobile browsers. The sound playback on mobiles is only allowed via explicit user action (touch).
To work around this common problem, you can play all your sounds upon user action at first. After that they will become available for playing inside time events. See the attached example.
Attachments:
You must be logged in to view attached files.2018-04-11 at 1:48 am #3480cloggyParticipantIn what folder should I place my sound files so that Puzzles can find them. I have tried putting them in the media folder of my project, but every time I click the object my sound is assigned to I hear nothing. in your examples the sound is called .\mySound.mp3 or .\breath.mp3. I even tried to spell out the entire path as:
C:\Users\Me\verge3d\applications\my_awesome_app\media\Wilhelm.ogg, but still I get no sound. Please advise, thanks.2018-04-11 at 7:44 am #3483Yuri KovelenovStaffHi,
We recommend placing sounds somewhere inside your app folder. If you place sounds in the media folder make sure the path contains it, e.g.
./media/mysound.mp3Also, not all browsers support the OGG format. You might want to convert your sound to the more widely supported MP3 format.
2018-04-11 at 7:08 pm #3503cloggyParticipantThanks Yuri. Verge3D is great!
2018-04-12 at 7:21 am #3509Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.