Please NOTE: If you are inserting Audio from another Folder/Directory Then please add file:/// Before your File's Path. Like This: And i am sorry that i forget to mention this in the Video.
So very easy to follow! Tqsvm audio expert! God bless you! 1st time I came across /// -- with deepest gratitude Sir! More training videos please. Do keep up the great work!
This man by far has been the best help I’ve had in this field! He clearly loves what he does and took the time out his day to break everything down step by step
you know, you really helped me with my html computer assignment, without you, i might have failed that subject, i was once lost, but now iam found, thank you for this.
Thanks very much! Your instructions are very clear!!! By the way, could you please teach me how to make the audio plays once only? I’m recently setting up a test, the participants are only allowed to play each audio once! If you could help I’d be much appreciated!
If you Want to Play a Audio File Once Then you just need to Remove the "Loop" Attribute from the Starting tag (If there is Any?). E.G. Before: After: If this Doesn't work then please Provide more Information (Like How do you want your Users to play The Audio by Clicking?? What kind of audio should play ETC ). So i can help you Better.
@@shudocode There's no 'loop' originally. Basically in our test, the participants needs to listen to 5 sentences of different accents of English and rate how they feel about them. So they can only listen to each audio for once, they need to press on the 'play' button but it can only play once.
Now i Get Your "TEST" Problem. I am Working on it. You will Soon Get a Link where you Can Copy The Whole CODE with Explanations and Also can Test* the Example. Wait for a While i am Working on it... :)
Comments like this Inspires me EveryDay. You can't even think how Happy your Comment made me. Thank you so much for this Lovely Comment and Thanks for Watching :)
Ya sir thanks for the reply I need a single control to be displayed Down it should display the song list Like. 1.songs 2.song2 ... By clicking it should play the respective song
Hello, really loved howy ou explained this so easily! But I did the same things you've said still my audio doesn't open, and I have both my html file and the audio in the same location, I don't know what I'm doing wrong.
hi. Your HTML seems right except you have miss spelled SRC in 3rd Source Tag, Please correct that and you suppose to write audio type in capital like type=“audio/MPEG” so do that but your code will work anyways i think there is something wrong with the audio path to identify the real problem press ctrl+i on your browser (or right click and select “inspect elements” options) and under the “Console” tab you will see an error.
check your email. i have sent you a new HTML code. Copy that code and paste that Code inside you “html” file run it and tell me which audio elements working (there are 3 audio elements Default,file and online audio)
@@shudocode thank you so so much truly for helping me out, but I've checked nothing have been sent my email is khaneen13@gmail.com maybe I've written it wrong at first
Ok so if your audio1.mp3 and .html file both are Present at Same Folder/Location then use this CODE Audio in HTML if your audio.mp3 file is present at diffrent location then get the Full path or use this MP# from online SRC/Source Audio in HTML
If you are inserting audio files from your Local storage then this won’t work on other computer.. to make this work on others computer then you have to send Both the Audio file and the HTML file. Or you can use Audio file from Web servers For example
that’s mean your browser isn’t able to detect your audio file Plese add file:/// before your Audio file's path Like : and if your Code still don't work : please provide your HTML code at this Webpage programminghead.com/help/ we will check your code and try to resolve your problem
Yes it is. agr ap Audio ya Source tags close na kre fir bhi Song play hota hai But Keep in mind apke browser ko pta nhi kha se Start hai Source tag so i can create a huge problem jab ap multiple Audio files ke sath Kam kr rhe ho and browser ko first Source se 2nd mein jana ho to ye error create krega agr ap 1 audio file ke sath kaam kr rhe hai ya fir first source supported hai by your browser then apko abhi koi problem nhi hogi i hope u will understand what i am trying to say thank for watching and commenting on this video
yes.. by removing “controls” attribute you can remove or hide those controls button and by using “autoplay” attribute you can play that audio in background automatically. (But most browsers nowadays don’t allow audio to play in background without user interaction. so you might face some problems while doing that
Most welcome 😊 but always use those songs that you have permission to Upload inside your Website, Otherwise you are doing online music piracy which is not a good thing and illegal i hope you will do something great which will help you in the future thanks for watching have a Great time
i can’t make video because i am working on other projects but if u want my help then i can give you some personal online lectures using google meet where you can talk and ask questions etc
Wait, do we need a end tag for the source tag also?? I mean i am using spck editor(in my phone) and if the end tag is needed then the app automatically gives an end tag but in the source tag it never happens
s suresh kumar you can’t add an audio inside a HTML Button. But you can play and pause your audio by using HTML buttons by using javascript’s .play and .pause events.
Hi Shubham, thank you very much this excellent tutorial. I got the html audio to work just fine. I've now subscribed to your channel. I have two questions if you don't mind me asking. Firstly, I had to use the full path from the security tab in properties. How do I enter the html for mp3, wav and ogg using the full path? Secondly, I want to use the finished audio file on the website I'm building. To do this the web builder says that I need to copy and paste the html into the site. How would I do this? Many thanks
Hi thanks for Watching, for the sub and for this Comment so if you want to use Audio files with different formats (to support all browsers) then use can use this Syntax
Sorry - Your browser does not support the audio element. and the Second things HTML audio in WebBuilders in webBuilder, the thing is when you include or give your audio file in your HTML file the browser will look for that Audio file in the Local Storage like in "C:/user/Desktop/song.mp3" but when you are working on WebBuilder or on Online Servers thenyour Audio file must be in the Server (you can't use there your local computers path) to fix that you can upload your Audio file in your WebBuilders server get the File path from there and you will be use that Path and include your audio file lets say your WebBuilder don't allow you to upload or Gives you the Audio file's path then you can use Other Audio hosting Servers and use the Audio files from there for testing you can use my Audio file's path "programminghead.com/audio/audio.mp3" CODE:
Yes sir You are right.. if we are inserting Audio files Once then this is not necessary to close the Audio tag. but if we are inserting Audio files multiple time then 1 un closed Tag can create a Huge Bug/error. Thats why i am Strictly following the Syntax. Thanks for watching
Sure I can help you.. first question is your HTML file and Audio file present at the same location? If you answer is no. Then please move you audio file to the same location where your HTML file is. Or u can use full audio file path . To get the full audio file path Right click on your audio file Select properties from there Under the security tab you can copy the full audio file’s path If still not working them I am free for google meeting. I can suggest changes over google meet
Traduções PtBr Internacionais Séries Filmes Novelas Most AAC files with finite length are wrapped in an MPEG-4 container (. mp4, . m4a), which is supported natively in Internet Explorer, Safari, and Chrome, and supported by the OS in Firefox and Opera. BTW thanks for Watching
Hey can you help me out? I need to allow users to upload their own audio and then play it, I assume I need to make it so they can change the source but how?
for that you need to use javascript using JS you can trigger a function whenever user upload there song and using that JS function you can replace audio elements sources to User uploaded track/song keep in mind this won’t upload that song into your server thsis will only choose that selected file from users computer and add it to your HTML file
yes sir. at 3:12 i have used the Ctrl+Z shortcut to get my Previous ShortPath. Because my Audio and HTML file is present at the same location. Thats why we don’t have to give the full Path there. thanks for watching i hope this reply helps
Thank you sir for the reply and it really helps but it didnt solve the problem in my case because the button appears but when i click it nothing happens i have tried the file:/// btw
Pixel Juice in in your browser right click on Blank Space and Select “Inspect” or “Inspect element” Option and you will see all the errors inside the console tab please tell/reply me the errors that you are facing so i can fix the problem easily
ok so the audio file’s path is the problem so you need to right click on your audio file select Properties from there and under the Security tab you need to copy the full path and paste that full path inside your HTML AUDIO tags SRC attribute example: src=“c:/user/Desktop/audio.mp3”
please corrct your File's Source. src=file///C:/user/audio.mp3 is WRONG src="file:///C:/user/audio.mp3" is Correct dont forget to add double quotes " " after src=" " and a colon : after file:/// if still not working Please use this source
Hi, please tell me html code to play audio for particular time like 2 time repeatation, 3 time repeatation or audio should play for 2 minutes or 4 minutes
Check this LINK : programminghead.com/CODE/play2pauseAfter.php here you have 2 button 1 for playing your Audio file Twice and 1 for Playing your Audio for 2Secounds this might HELP :)
@@shudocode thanks for reply, can we have a button like there we can set repeatation like how many time we want to repeat it so if any one touch it and type 5 so it should repeat 5 time and same for minutes if any type 4 so it should play for 4 minutes
hello great video , i have written the code and it worked successfully but i am stuck i have no clue on how to align this in the middle of my page and stay there when i shrink the page down and englage it ...please help me bro !!! please nothing has worked for me
@@shudocode hey thank u for the response , i have done this as such text-align: center; padding-top: 100px; padding-right: auto; padding-bottom: 100px; padding-left: auto; margin: auto; i cannot get them to bunch together vertically mind you though i am failry new to this
@@spagetti2514 Hi i think flex box will work for you.. use FLEX box or you can Submit your CODE and i will do that for you Link to submit the CODE: programminghead.com/help/
hello sir this codes work but I am trying add more audio with audio name while I put these code it work but problem is it play both audio can't we make one pause on while another one is playing.
if you want to play multiple audio onebyone then you need to create multiple pages for that. and create next and previous button that will play next song/redirect to another song on a click(if you want to do it using HTML only) if you know about JS then you can do everything in a single page where you can use .play .pause .click functions that can allow you to change or switch between multiple songs on .pause state or you can change the song without even refreshing the webpage
Sir I request you to give me some more information on html I made sample of some of my own design Where I use maroquee behavior many others I want to Know about css and how it works Could you please explain me next video
To Autoplay Your Audio file You need to Add "autoplay" and "loop" attribute inside the Audio tag's Starting Tag Anywhere after the Tag Name. E.G. But Some Browser Like Chrome Does not Allow or Support the Audio Autoplay Feature, Then we have to use a Little trick to autoplay Audio file in Every Browser. Trick Link: programminghead.com/CODE/?id=autoplay-audio-in-html BTW Thanks for Watching And Commenting on this Video.
This is because that audio file is Present at your local computer So when you are sharing HTML file make sure to share audio file with it Even after that make sure audio and html file is Present at the same location Or you have host/upload audio file in the server And use audio files url these For example
or you can Copy Our Code Using These Links (BTW Thanks for Watching and Commenting on our Video) : First Link : programminghead.com/CODE/?id=audio-in-html-Example1 2nd Link: programminghead.com/CODE/?id=audio-in-html-Example2
use autoplay="true" and volume="0.1" attributes inside your Audio tags For example but keep in mind most browsers don't allow us to play audio file automatically on the page load "DUE TO SECURITY REASONS"
@@shudocode yeah I’m using an html as an overlay and it has a looping audio every so often but it’s too loud. So I wanna turn it down a little I will try that.
To hide the Audio control button Just remove the "Controls" attribute from the audio tag But if u hide tye Controls then you can't plqy the audio To fix that add this "autoplay" attribute Which will play audio on page Load But most browsers don't allow autoplay and stuff due to some security reasons So this is not the best solution
I am sorry but I am not sure about what r u asking here.. but if you want me to make tutorials about blogger then I might make them in future (I am not 100% sure BTW)
@@GUPRPEET-Singh oh sorry. now i get your Question so you want to play multiple songs one after another for that you have to use JavaScript where you will list all the audio files inside an Array and using JS function call or triggering the .play() action you will start the first song (from the array) after you will use some Event Listers which will trigger on Audio play Audio pause and audio end example addEventListener("ended",function(){ //now play the next song from the array }); and you can also check for the array Length (so you can trach how many songs left to play and stuff like that) :)
Please NOTE:
If you are inserting Audio from another Folder/Directory Then please add file:/// Before your File's Path.
Like This:
And i am sorry that i forget to mention this in the Video.
Please share your Code here : programminghead.com/help/
I will check your Code and Inform about the Problem through your Given Email Address.
Thanks
It's ok.. Thanks 🙂
So very easy to follow! Tqsvm audio expert! God bless you! 1st time I came across /// -- with deepest gratitude Sir! More training videos please. Do keep up the great work!
thanks you so much for these kind words
i can't even explain how much these words means to me
all i can say is thank you
This man by far has been the best help I’ve had in this field! He clearly loves what he does and took the time out his day to break everything down step by step
Wow thanks for your kind words
@@shudocode No problem thank you for the help!
you know, you really helped me with my html computer assignment, without you, i might have failed that subject, i was once lost, but now iam found, thank you for this.
Oh thanks for saying that. Comments like these motivates me a lot.. Thanks again and BTW Thanks for watching
Thanks for This "How to Insert Audio in HTML using NotePad text Editor" Video. It helped me A lot.
we are glad to hear that.
yeah me tooooooo
this video helped me soooo much, i kept getting inserting audios in html5 and no notepad, so for this i thank you sir
NΘϊr νφx thank you for watching.
Thanks very much! Your instructions are very clear!!! By the way, could you please teach me how to make the audio plays once only? I’m recently setting up a test, the participants are only allowed to play each audio once! If you could help I’d be much appreciated!
If you Want to Play a Audio File Once Then you just need to Remove the "Loop" Attribute from the Starting tag (If there is Any?).
E.G.
Before:
After:
If this Doesn't work then please Provide more Information (Like How do you want your Users to play The Audio by Clicking?? What kind of audio should play ETC ). So i can help you Better.
Shubham Kumar Thanks a lot! I’ll give it a try!
@@shudocode There's no 'loop' originally. Basically in our test, the participants needs to listen to 5 sentences of different accents of English and rate how they feel about them. So they can only listen to each audio for once, they need to press on the 'play' button but it can only play once.
Now i Get Your "TEST" Problem. I am Working on it. You will Soon Get a Link where you Can Copy The Whole CODE with Explanations and Also can Test* the Example. Wait for a While i am Working on it... :)
Shubham Kumar That’s very nice of you!!!’ Thanks very much!!!!
You are the best, you explained every possibility out there and you helped me a lot! Thank you very much!
thanks for watching and for leaving such a great comment
Your really did an awesome work it's worked for me at first attempt superr and also impressed for your attitude keep working on it.. best of luck
Comments like this Inspires me EveryDay. You can't even think how Happy your Comment made me. Thank you so much for this Lovely Comment and Thanks for Watching :)
Sir is it possible to make a list with single control if possible make such code send kindly send me pls .. it will help me more
sravanthi kunchapu can you please give me more details about what exactly you are looking for?
Ya sir thanks for the reply
I need a single control to be displayed
Down it should display the song list
Like. 1.songs
2.song2
...
By clicking it should play the respective song
programminghead.com/CODE/?id=audio-test-and-vote
Check this Link and Tell me what else do you need?
Hello, really loved howy ou explained this so easily! But I did the same things you've said still my audio doesn't open, and I have both my html file and the audio in the same location, I don't know what I'm doing wrong.
Haneen Khaled please submit your code here programminghead.com/help/ and i will check your code and try to fix your problem
@@shudocode Thaank youu so muchh!! you're so kind❤
hi. Your HTML seems right except you have miss spelled SRC in 3rd Source Tag, Please correct that
and you suppose to write audio type in capital
like type=“audio/MPEG”
so do that
but your code will work anyways
i think there is something wrong with the audio path
to identify the real problem press
ctrl+i on your browser (or right click and select “inspect elements” options)
and under the “Console” tab you will see an error.
check your email. i have sent you a new HTML code. Copy that code and paste that Code inside you “html” file
run it and tell me which audio elements working (there are 3 audio elements Default,file and online audio)
@@shudocode thank you so so much truly for helping me out, but I've checked nothing have been sent my email is khaneen13@gmail.com maybe I've written it wrong at first
Tommarow is last day for submitting. My it practical pls help me sir❤️
yes tell me your problem
@@shudocode sir write html code to insert audio clip named audio1.mp3 in the webpage
Pls tell me
Ok
so if your audio1.mp3 and .html file both are Present at Same Folder/Location
then use this CODE
Audio in HTML
if your audio.mp3 file is present at diffrent location then get the Full path
or use this MP# from online SRC/Source
Audio in HTML
@@shudocode tnku sir❤️❤️
Hi thank you it worked, but I have a question, does this work on other computers?? I assume not?
If you are inserting audio files from your Local storage then this won’t work on other computer.. to make this work on others computer then you have to send Both the Audio file and the HTML file.
Or you can use Audio file from Web servers
For example
@@shudocode oh thank you very much it helped me.
@@sideswipe5940 i am GLAD. BTW thanks for Watching
Controls are there but doesn’t allow me to play it :(
that’s mean your browser isn’t able to detect your audio file
Plese add file:/// before your Audio file's path
Like :
and if your Code still don't work :
please provide your HTML code at this Webpage
programminghead.com/help/
we will check your code and try to resolve your problem
Perfect! Saved me hours of work, thanks a million...
thanks for watching
brother maine source tag close nhi kia phir bhi song chal gya is this possible
ye vala
Yes it is.
agr ap Audio ya Source tags close na kre fir bhi Song play hota hai But Keep in mind
apke browser ko pta nhi kha se Start hai Source tag
so i can create a huge problem jab ap multiple Audio files ke sath Kam kr rhe ho
and browser ko first Source se 2nd mein jana ho to ye error create krega
agr ap 1 audio file ke sath kaam kr rhe hai
ya fir
first source supported hai by your browser
then apko abhi koi problem nhi hogi
i hope u will understand what i am trying to say
thank for watching and commenting on this video
as there anyway we can let audio play in background and user dosent have controll
yes.. by removing “controls” attribute you can remove or hide those controls button and by using “autoplay” attribute you can play that audio in background automatically. (But most browsers nowadays don’t allow audio to play in background without user interaction. so you might face some problems while doing that
Thank you soooo muchhhh because of you I'll pass my exam!!!! I'm so grateful to you now!!!
Thank you for your kind words! I'm honored to have been a part of your exam success.
This really helped me in my class today thank you sir kumar 💜
Thanks for Watching Sir Bontilao
Thank you so much bro now i am making a online songs download Websight thank u a lot
Most welcome 😊
but always use those songs that you have permission to Upload inside your Website, Otherwise you are doing online music piracy which is not a good thing and illegal
i hope you will do something great which will help you in the future
thanks for watching have a Great time
@@shudocode bro for me i am not getting download button in it trying hard from morning . pls make a video on it bro
i can’t make video
because i am working on other projects
but if u want my help
then i can give you some personal online lectures using google meet
where you can talk and ask questions etc
THIS WORKED FOR ME !!! tysm hehehehe i have an html project for school
happy to know that
Wait, do we need a end tag for the source tag also?? I mean i am using spck editor(in my phone) and if the end tag is needed then the app automatically gives an end tag but in the source tag it never happens
No
You don't need to write closing/end tag for source Tag
(It was my Bad/mistake
THANKS for telling me this)
This is the Syntax
Thanks for replying
@@ayushchaudhary2200 thanks for pointing out my mistake
Can I add audio in a button?
s suresh kumar you can’t add an audio inside a HTML Button. But you can play and pause your audio by using HTML buttons by using javascript’s .play and .pause events.
Thank you. I love the way you explained. It was clearly nice.
s suresh kumar thanks for watching
THANK YOU SIRRRRRR. YOU MADE MY DAYYYYY🎉🎉🎉🎉🎉
and your comment made mine
thanks for watching
Thank you....thank you.... thank you....a lot ....your video kinda saved my life
Glad it helped!
and thanks for this Comment. People like you motivates me.
thanks
Hi Shubham, thank you very much this excellent tutorial. I got the html audio to work just fine. I've now subscribed to your channel.
I have two questions if you don't mind me asking. Firstly, I had to use the full path from the security tab in properties. How do I enter the html for mp3, wav and ogg using the full path? Secondly, I want to use the finished audio file on the website I'm building. To do this the web builder says that I need to copy and paste the html into the site. How would I do this? Many thanks
Hi thanks for Watching, for the sub and for this Comment
so if you want to use Audio files with different formats (to support all browsers)
then use can use this Syntax
Sorry - Your browser does not support the audio element.
and the Second things
HTML audio in WebBuilders
in webBuilder, the thing is when you include or give your audio file in your HTML file
the browser will look for that Audio file in the Local Storage like in "C:/user/Desktop/song.mp3"
but when you are working on WebBuilder or on Online Servers
thenyour Audio file must be in the Server (you can't use there your local computers path)
to fix that you can upload your Audio file in your WebBuilders server
get the File path from there
and you will be use that Path and include your audio file
lets say your WebBuilder don't allow you to upload or Gives you the Audio file's path
then you can use Other Audio hosting Servers
and use the Audio files from there
for testing you can use my Audio file's path "programminghead.com/audio/audio.mp3"
CODE:
@@shudocode Thank you indeed for your help, very much appreciated
My pleasure
thanks it helped me a lot
Thanks for Watching
Sir, I don't think that we need to close audio tag. Isn't it? Please reply
Yes sir You are right.. if we are inserting Audio files Once then this is not necessary to close the Audio tag. but if we are inserting Audio files multiple time then 1 un closed Tag can create a Huge Bug/error. Thats why i am Strictly following the Syntax. Thanks for watching
Thanks a lot
U make my day
Glad to hear that
BTW thanks for Watching
Amazing Brother You Are Doing Great Keep It Up 💖💐👍🏻
Thanks for saying that BTW Thanks for watching
@@shudocode
You Are Most Welcome Bro Ur Way Of Teaching Is Too Good 💐👍🏻❤️
its so good thank you i am sure i will not make any erros
Stanley Mufuka thanks for watching
best tutorial...tysm
best comment.... TYSM for watching
thank you very much 😊
Thank you for Watching
Thanks a lot for this video it's really help me to use audio tag
I am glad to hear that. Thanks for watching
It hlpd me in my board practicals Tnx brook u r grt
I mnt broooo
@@keerthisatheesh9888 I am Glad to Hear That and Thanks for Watching.
Hello I’m going step by step and my only issue is that I have the control bar but the audio won’t play. Are you able to help with this?
Sure I can help you.. first question is your HTML file and Audio file present at the same location? If you answer is no. Then please move you audio file to the same location where your HTML file is. Or u can use full audio file path .
To get the full audio file path
Right click on your audio file
Select properties from there
Under the security tab you can copy the full audio file’s path
If still not working them I am free for google meeting. I can suggest changes over google meet
@@shudocode yes the files are in the same folder
@@r301pirate2 are you free for google meet right now?
@@shudocode yes I am so I have to download anything for it?
no Just join this meeting using your web-browser
click this link
link expired LOL
Thanks sir so much.... 👍👍👍😀😀🙂🙂
Thanks for watching
Hi! Your video helps me a lot. Thank you so much!! :)
thanks for watching
Thanks for the information
thanks for watching
Thanks dada for share that information
Vishal Suryawanshi thank you for watching
Is streaming Shoutcast aac supported today? Good tips.
Traduções PtBr Internacionais Séries Filmes Novelas Most AAC files with finite length are wrapped in an MPEG-4 container (. mp4, . m4a), which is supported natively in Internet Explorer, Safari, and Chrome, and supported by the OS in Firefox and Opera. BTW thanks for Watching
This helped me! Thank you so muchhhhh!!
Jenny of Oldstones thanks for watching
Helped me a lot
Thank u so much !!
Glad it helped!
BTW thanks for Watching
Hey can you help me out? I need to allow users to upload their own audio and then play it, I assume I need to make it so they can change the source but how?
for that you need to use javascript
using JS you can trigger a function whenever user upload there song
and using that JS function you can replace audio elements sources to User uploaded track/song
keep in mind this won’t upload that song into your server
thsis will only choose that selected file from users computer and add it to your HTML file
I get confused in the part where you paste the full audio file’s path and then it disappears, did you delete it or?
yes sir. at 3:12 i have used the Ctrl+Z shortcut to get my Previous ShortPath. Because my Audio and HTML file is present at the same location. Thats why we don’t have to give the full Path there.
thanks for watching i hope this reply helps
Thank you sir for the reply and it really helps but it didnt solve the problem in my case because the button appears but when i click it nothing happens i have tried the file:/// btw
Pixel Juice in in your browser right click on Blank Space and Select “Inspect” or “Inspect element” Option
and you will see all the errors inside the console tab
please tell/reply me the errors that you are facing so i can fix the problem easily
Thank you sir the error is: “ Failed to load resource: net:: ERR_FILE_NOT_FOUND”
ok so the audio file’s path is the problem
so you need to right click on your audio file
select Properties from there
and under the Security tab you need to copy the full path
and paste that full path inside your HTML AUDIO tags SRC attribute
example: src=“c:/user/Desktop/audio.mp3”
Thank you very much
Sanjay Sahu thanks for watching sir
tysm broo u literraly resute a huge problem that i had
i am glad that i could help. Thanks for watching
THANK YOU SO MUCH
Thanks for WATCHING :)
Bhi bahoot hard, sahi ja raha hai, laga Rai
Micro gamer thanks bhai
*Thank you so much about this!*
Thanks for watching
Controls are there but they are not working...seems like the page is hanged...please reply sir what to do....I have tried using
Audio src=file///
please corrct your File's Source.
src=file///C:/user/audio.mp3 is WRONG
src="file:///C:/user/audio.mp3" is Correct
dont forget to add double quotes " " after src=" "
and a colon : after file:///
if still not working Please use this source
Worked___ thanks broo....
thanks for watching
it worked thank you so much sir!!!
Thank you so much ma'am for watching
Tnq very much bro .from srilanka
Thanks for watching
Hi, please tell me html code to play audio for particular time like 2 time repeatation, 3 time repeatation or audio should play for 2 minutes or 4 minutes
Check this LINK : programminghead.com/CODE/play2pauseAfter.php
here you have 2 button
1 for playing your Audio file Twice
and 1 for Playing your Audio for 2Secounds
this might HELP :)
@@shudocode thanks for reply, can we have a button like there we can set repeatation like how many time we want to repeat it so if any one touch it and type 5 so it should repeat 5 time and same for minutes if any type 4 so it should play for 4 minutes
For that just pass User input in JS variable and use Variables to play audio etc
It's work. thanks so muchhh
Happy to hear that. BTW Thanks for watching
Very nice 👌👌👌👌
Viru Sehwag Thanks for watching
hello great video , i have written the code and it worked successfully but i am stuck i have no clue on how to align this in the middle of my page and stay there when i shrink the page down and englage it ...please help me bro !!! please nothing has worked for me
for that you have to use CSS's margin:auto; properties
or you can use CSS Flex there are so many options
@@shudocode hey thank u for the response , i have done this as such
text-align: center;
padding-top: 100px;
padding-right: auto;
padding-bottom: 100px;
padding-left: auto;
margin: auto;
i cannot get them to bunch together vertically
mind you though i am failry new to this
@@spagetti2514 Hi i think flex box will work for you.. use FLEX box or you can Submit your CODE and i will do that for you
Link to submit the CODE: programminghead.com/help/
@@shudocode hello sir i just emailed you !! please and thank you brother let me know what i have done wrong
Dan Barb can you give me an example like how do you want to align those audio controls?
audio is not playing automatically :(
Ali BaBa this is because browsers like google chrome don’t allow users to play audio file automatically because of some security reasons.
Shubham Kumar
I see thank you so much for answering I really appreciated
Ali BaBa thanks for watching this video
Thank you bro!!
Thanks for Watching
Thank youu sir 😃
Thanks for Watching
Not sure why this has happened now, but no audio html code seem to be working on chrome anymore. No matter how many ways I code it
Watch this video
ruclips.net/video/JWE1xzN5g_c/видео.html
This might help
is it possible to have two audio controls in one html
Yes it is Possible
You just need to use Two *Audio Tags* with *controls* Attribute
Thank you thank you thank you!
Chelsy Greenwood Horan thanks thanks thanks for watching :p
THANKS BRO
thank you bro for watching
hello sir this codes work but I am trying add more audio with audio name while I put these code it work but problem is it play both audio can't we make one pause on while another one is playing.
if you want to play multiple audio onebyone then you need to create multiple pages for that. and create next and previous button that will play next song/redirect to another song on a click(if you want to do it using HTML only)
if you know about JS
then you can do everything in a single page
where you can use .play .pause .click functions that can allow you to change or switch between multiple songs on .pause state or you can change the song without even refreshing the webpage
Sir I request you to give me some more information on html
I made sample of some of my own design
Where I use maroquee behavior many others
I want to Know about css and how it works
Could you please explain me next video
actually i can explain it rightnow using zoom or google meet
Are you free for tomarrow at day time
no
thanks
joana benjamin thanks for Watching.
Thank you
Pallavi Singh thanks for watching
Hi Shubham. I made an online app which uses audio from youtube as the audio. Let me know if you want to review it
yes i want to review it
Thank you so much!!! 💯
Thanks for Watching
How can I add audio in an animation I made which will be played automatically when I run the animation
Arish Khan i recommend you to watch this video ruclips.net/video/1fmfwDRM5II/видео.html i hope this video will fix your problem
@@shudocode thank you...
Thanks yaar i learned now 😇
Thanks for watching Yaar.. have a good time :)
Good sir
Thanks For watching
this video was so damnnn helpful!!!!!
thank you so much!!!!!
Thank you so much for watching and for this Very kind Comment.
i'm subbing All the best
Thanks for this
OMG THANK YOU THANK YOU THANK YOU
thank you for watching thank you for watching thank you for watching
Aww bro this is great thank you 🤩🤩
Thanks For watching :)
what is the code for it to auto-play and loop?
To Autoplay Your Audio file You need to Add "autoplay" and "loop" attribute inside the Audio tag's Starting Tag Anywhere after the Tag Name.
E.G.
But Some Browser Like Chrome Does not Allow or Support the Audio Autoplay Feature, Then we have to use a Little trick to autoplay Audio file in Every Browser.
Trick Link:
programminghead.com/CODE/?id=autoplay-audio-in-html
BTW Thanks for Watching And Commenting on this Video.
Thank U so much bro😍
Muhammad Faiq thank U so much for Watching
thank you so much i love you
You are welcome.. and I love u too LOL (sorry if I offended you)
but when i try to send the html to a friend it dont send the audio just the code and the web show the controls with 00:00/00:00
This is because that audio file is Present at your local computer
So when you are sharing HTML file make sure to share audio file with it
Even after that make sure audio and html file is Present at the same location
Or you have host/upload audio file in the server
And use audio files url these
For example
Tx sir
thanks for watching Ma’am
Thanks a lot bro 😊
Thanks for watching sis :)
all browsers support mp3 except ogg and wav
Milan Budha you are right sir
Thanks this helped!!!
i am glad to hear that. BTW Thanks for Watching
love you bro
jassi Jassi thank you bro
Bro very very tanx bro😊😊😊
Thanks for watching 😊
Thanks a lot, man!!
Ashish Prakash thanks for watching
That was very helpful👍👌
Kishor Ahir Thanks for Watching
Bro pls help it's not working
jishnu royal thanks for writing to us. Can you provide your HTML code so we can take a look and resolve your problem ASAP.
*I got you bro. Here's another tutorial*
ruclips.net/video/19oYJh3tYn4/видео.html
or you can Copy Our Code Using These Links (BTW Thanks for Watching and Commenting on our Video) :
First Link :
programminghead.com/CODE/?id=audio-in-html-Example1
2nd Link:
programminghead.com/CODE/?id=audio-in-html-Example2
Thanks
thanks a lot
You are most welcome
BTW thanks for Watching
Good DAY :)
@@shudocode thanks bro
How do i have it on autoplay and turn down the volume? Without the slider
use autoplay="true" and volume="0.1" attributes inside your Audio tags
For example
but keep in mind most browsers don't allow us to play audio file automatically on the page load "DUE TO SECURITY REASONS"
@@shudocode yeah I’m using an html as an overlay and it has a looping audio every so often but it’s too loud. So I wanna turn it down a little I will try that.
Thank you so much! T_T
thanks for watching
tysm:DDDDDD
Thanks for watching :D
thks
Thanks for Watching
How to play without control panel.. background game music
To hide the Audio control button
Just remove the "Controls" attribute from the audio tag
But if u hide tye Controls then you can't plqy the audio
To fix that add this "autoplay" attribute
Which will play audio on page Load
But most browsers don't allow autoplay and stuff due to some security reasons
So this is not the best solution
I did exactly what is said in the video, but it didn't work, I don't know why
submit your code here
programminghead.com/help/
and i will check your code and let you know where is the issue
You savved me😊😊
thanks for watching
not working
Cicara we are sorry to hear that. can u please provide your html code so we can resolve your problem. BTW thanks for watching
How to make playlist of the same for blogger???
I am sorry but I am not sure about what r u asking here.. but if you want me to make tutorials about blogger then I might make them in future (I am not 100% sure BTW)
@@shudocode i am asking how to make a playlist in blogger. Taki songs apne app change ho.
Thanks btw👍
@@GUPRPEET-Singh oh sorry. now i get your Question
so you want to play multiple songs
one after another
for that you have to use JavaScript
where
you will list all the audio files inside an Array
and using JS function call or triggering the .play() action you will start the first song (from the array)
after you will use some Event Listers
which will trigger on
Audio play
Audio pause
and audio end
example addEventListener("ended",function(){
//now play the next song from the array
});
and you can also check for the array Length (so you can trach how many songs left to play and stuff like that)
:)
@@shudocode thanks brother..👍 but I can't do that unless a video is demonstrating what u said.😀.. thanks anyway...
@@GUPRPEET-Singh ok I might send u a HTML file where I will implement all these steps (these days I am kinda busy so it can take long so sorry)
But it only for single audio
Yes
But for multiple audio files you need to use multiple audio tags or store different audio sources inside an array and please em one bye one.
@@shudocode please make a video for that we don't know how to do it..
@fundose123 will do