How to autoplay an audio in Chrome browser? I found some similar question in here, but when i try the solution they gave, it didn't work for me. Any new solution for this problem?
            Asked
            
        
        
            Active
            
        
            Viewed 57 times
        
    -2
            
            
        - 
                    Please read the [ask] page for tips on how to improve this question. Saying that _it didn't work_ or not including any code in your question does not really help anyone in troubleshooting what you tried. – blurfus Jul 05 '23 at 02:55
 - 
                    @SaiManoj can't work in chrome. Chrome block the audio autoplay. Any tips? – Veri Virgandra Jul 05 '23 at 02:59
 - 
                    2You can’t. Autoplay is disabled purposefully for user experience. Most browsers require user interaction for sound. Also, don’t do it even if you can. – disinfor Jul 05 '23 at 02:59
 - 
                    @disinfor okay thanks – Veri Virgandra Jul 05 '23 at 03:00
 
2 Answers
-1
            
            
        To autoplay an audio file in the Chrome browser you can just add autoplay in the audio tag
Example:
<audio id="audio_id" autoplay>
  <source src="path/to/audiofile.mp3" type="audio/mpeg">
</audio>
        XRT-NoOne
        
- 46
 - 8