/    Sign up×
Community /Pin to ProfileBookmark

Silly Error? Why Isn’t The Sound Playing? ?

All i did was replaced the dummy sound with the right one hosted on Dropbox and it refuses to play…. Idea is you type in a text and after a few seconds hear a ring and then hear your typed word. What am i not getting here?

https://codepen.io/bogdan-seredqk/pen/RwPLBpQ

heres the original with dummy sound:

https://codepen.io/bogdan-seredqk/pen/MWwvaRm

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumMar 05.2020 — First of all you need to get direct access to your sound file. This can be achieved easily by adding `?raw=1</C> to the URL:<br/>
<C>
www.dropbox.com/s/8gpcieio1c4d47a/store-door-chime-sound-effect.mp3?raw=1`
Copy linkTweet thisAlerts:
@pereszauthorMar 05.2020 — @Sempervivum#1615715 Thanks! it gave direct link but its still not playing?
Copy linkTweet thisAlerts:
@SempervivumMar 05.2020 — Unfortunately in your modified pen the settings button is not visible. When I make it visible by setting the font color to white and enter a word the sound is playing, both speech and doorbell.
Copy linkTweet thisAlerts:
@pereszauthorMar 05.2020 — @Sempervivum#1615717 ok actualy got it to work by adding the https in front of the link :) the settings button is intentionally black so its not visible, but it works if you know where to click it. But, ok..heres a kicker. Code works on PC but not mobile (iOS for example)...
Copy linkTweet thisAlerts:
@VITSUSAMar 06.2020 — @peresz#1615714 This is the issue of "permission denied" in sound file. Try to check sound files.
Copy linkTweet thisAlerts:
@SempervivumMar 06.2020 — Code works on PC but not mobile (iOS for example)...[/quote]The reason might be that common mobile browsers play media content only when initialized by user action.
×

Success!

Help @peresz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...