Can you write HTML code when enter website and play the songs automatically?
by Liguma - Monday November 20, 2023 at 03:27 AM
#1
ฉันเป็นมือใหม่เลยไม่ค่อยรู้อะไรมาก
Reply
#2
https://www.w3schools.com/TAgs/att_audio_autoplay.asp
Reply
#3
(Nov 20, 2023, 03:27 AM)Liguma Wrote: ฉันเป็นมือใหม่เลยไม่ค่อยรู้อะไรมาก

Depends, can you finger my balls?

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Spamming weird sex messages.
Reply
#4
(Nov 21, 2023, 08:33 PM)joepa Wrote: https://www.w3schools.com/TAgs/att_audio_autoplay.asp

Thank you, brother-in-law.
Reply
#5
Alright blissful
Reply
#6
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title</title>
</head>
<body>
    <audio id="myAudio" controls>
        <source src="......" type="audio/mp3">
    </audio>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
    var audio = document.getElementById("myAudio");
    audio.play();
    });
    </script>
</body>
</html>
Reply
#7
okay superb
Reply
#8
(Nov 25, 2023, 05:02 PM)antinomyduelist Wrote:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title</title>
</head>
<body>
    <audio id="myAudio" controls>
        <source src="......" type="audio/mp3">
    </audio>
    <script>
    document.addEventListener("DOMContentLoaded", function() {
    var audio = document.getElementById("myAudio");
    audio.play();
    });
    </script>
</body>
</html>

Thank you very much for the code.
Reply
#9
I'm pretty sure most browsers block audio / videos from auto-playing, so a get around is a click to enter (I.E the user interacts with the page before entering) which then lets the audio or video autoplay. It's why practically all biolinks have a click to enter. If you still need code to fit this then send me a DM
Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] Database Searcher Telegram odanbtw 1,030 93,004 2 hours ago
Last Post: xnoddie
  No KYC crypto services sacage_x64 3 179 6 hours ago
Last Post: MurphyPing7
  DarkGPT Tutorial Easy idontknowmyname 191 8,833 10 hours ago
Last Post: hugthepsycho
  Bypassing Modern AV (Metasploit Method) godco99 10 719 Today, 04:39 AM
Last Post: lukaku
  Curated Software Reverse Engineering Tools jahy 129 26,134 Today, 03:00 AM
Last Post: Insulina

Forum Jump:


 Users browsing this forum: 1 Guest(s)