Autoplay mp3/mp4 on website

SkidCop

Active Member
25 May 2020
138
56
#1
Moin,

Würde gerne musik bzw. nen Video abspielen ohne das man davor auf der Website wo hinklicken muss. Hab gefühlt schon alles von Stack Overflow durch aber irgendwie funktioniert da nix
Wäre nett wenn mir wer weiterhelfen könnte.

mfg
 

Crysix

Honorable
7 Aug 2016
2,289
1,520
#5
kann man umgehen. mit soundcloud sollte es zb noch gehen.
hier mal als beispiel damit das alles komplett im hintergrund läuft ohne, dass man den player sieht

Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/711814075&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/remember-me-393200929" title="Remember Me" target="_blank" style="color: #cccccc; text-decoration: none;">Remember Me</a> · <a href="https://soundcloud.com/remember-me-393200929/its-like-were-at-the-edge-its-not-your-fault-ep-demo" title="it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)" target="_blank" style="color: #cccccc; text-decoration: none;">it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)</a></div>
 
Likes: SkidCop

SkidCop

Active Member
25 May 2020
138
56
#6
hier mal als beispiel damit das alles komplett im hintergrund läuft ohne, dass man den player sieht

Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/711814075&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/remember-me-393200929" title="Remember Me" target="_blank" style="color: #cccccc; text-decoration: none;">Remember Me</a> · <a href="https://soundcloud.com/remember-me-393200929/its-like-were-at-the-edge-its-not-your-fault-ep-demo" title="it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)" target="_blank" style="color: #cccccc; text-decoration: none;">it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)</a></div>
danke funktioniert perfekt :grin:
 
Last edited:
Likes: Crysix

SkidCop

Active Member
25 May 2020
138
56
#8
lmao irgendwie funktioniert es mit Crysix Crysix seinem code aber mit meinem nicht
Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/711814075&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/remember-me-393200929" title="Remember Me" target="_blank" style="color: #cccccc; text-decoration: none;">Remember Me</a> · <a href="https://soundcloud.com/remember-me-393200929/its-like-were-at-the-edge-its-not-your-fault-ep-demo" title="it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)" target="_blank" style="color: #cccccc; text-decoration: none;">it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)</a></div>
Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/903082825&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/21savage" title="21 Savage" target="_blank" style="color: #cccccc; text-decoration: none;">21 Savage</a> · <a href="https://soundcloud.com/21savage/many-men" title="Many Men" target="_blank" style="color: #cccccc; text-decoration: none;">Many Men</a></div>
hab den jetzt gefühlt 10 Stunden lang abgeglichen
hier der track
falls ich beim einbetten irgendwas falsch gemacht habe
 
Last edited:
7 Jan 2015
4,827
4,152
#9
lmao irgendwie funktioniert es mit Crysix Crysix seinem code aber mit meinem nicht
Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/711814075&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/remember-me-393200929" title="Remember Me" target="_blank" style="color: #cccccc; text-decoration: none;">Remember Me</a> · <a href="https://soundcloud.com/remember-me-393200929/its-like-were-at-the-edge-its-not-your-fault-ep-demo" title="it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)" target="_blank" style="color: #cccccc; text-decoration: none;">it&#x27;s like we&#x27;re at the edge (it&#x27;s not your fault EP demo)</a></div>
Code:
<iframe width="0%" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/903082825&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/21savage" title="21 Savage" target="_blank" style="color: #cccccc; text-decoration: none;">21 Savage</a> · <a href="https://soundcloud.com/21savage/many-men" title="Many Men" target="_blank" style="color: #cccccc; text-decoration: none;">Many Men</a></div>
hab den jetzt gefühlt 10 Stunden lang abgelichen
hier der track
falls ich beim einbetten irgendwas falsch gemacht habe
bei meinem Chrome werden beide geblockt: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio
 
7 Jan 2015
4,827
4,152
#11
grad eben hats bei mir auch nicht funktioniert, jetzt funktioniert es aber plötzlich wieder wtf

Les doch halt die 10 Zeilen Dokumentation, wird schon nicht so schwer sein