Home › Forums › General Questions › Audio doubling or phasing with HTML button
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-10-02 at 2:08 pm #33744michalex19Participant
Hello,
When i trigger an .mp3 from an HTML button, it doesn’t play correctly. It sounds like it’s being played twice, a few frames apart.
I’ve checked and triple checked it’s not playing somewhere else, verified it plays normal if triggered by a button in the 3d scene (as opposed to triggered by HTML button), I’ve tried changing it from music to sound (sound just doesn’t play anything on my computer), I’ve tried making the audio mono and stereo, none of those have worked. Any help is appreciated.
Attachments:
You must be logged in to view attached files.2020-10-02 at 3:33 pm #33753Yuri KovelenovStaff2020-10-02 at 5:22 pm #33766michalex19ParticipantChrome, Firefox on Windows and android.
PC is an MSI GS75 Stealth with a nvidia 2080 max q design gpu.
it happens if played locally or if hosted externally, here is a link for you to hear if you want:
https://united-vr.s3.amazonaws.com/dev/door/3/index.htmlI just tried deleting all the other puzzles and the problem was still there, but the lag was less, so not sure if that has something to do with it. also the model needs to be optimized (we plan to do that later), don’t know if that would cause the issue?
2020-10-03 at 8:43 am #33778Yuri KovelenovStaffHi,
I checked your link. Before investigating any further, I’d suggest you remove the duplicate iframe element from your Webflow layout. Right now Verge3D is loaded and initialized twice.
Some .hdr textures are requested but not loaded. May be you should clean up your scene too.
2020-11-12 at 6:29 pm #35292michalex19ParticipantHey Yuri, just replying to this, but now I’m very curious that it’s loading twice. I didn’t create the webflow piece, someone else did, but which file would I edit to change it to only load once? Would it be the .HTML file? or the .js file?
I can’t share publically on this forum, but i can send you the files if you want to investigate, just let me know your email address or how to send to you.
I’m trying to get this project working on ios and it loads, but then restarts loading, over and over, I thought it might need optimization, but then remembered this post, and now I’m wondering if it’s whatever is causing this issue.
The other thing is I don’t have the audio issue anymore, so maybe it’s fixed?
2020-11-13 at 8:31 am #35304Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.