These days, users spend a lot of time on the Internet throughout the day and night in order to do all their daily tasks through it, with the release of the latest version of HTML , users gained a better experience of using the Internet, and the reason for this positive user experience was the ability to add high quality videos, audio and images through this way, in order to be able to add them to a website , you need to enter code, which we are going to mention briefly below.In general, these days, most owners of large and small sites use HTML5 , therefore they are able to attract different users to their websites, and eventually users recommend these sites to their friends, thus it causes an increase in the traffic and ranking of the website , which causes the site to appear in the first page of search engine results page which can have a huge impact on the success of a website.
How to embed audio files?
With the help of HTML5 you can do this task easily, but it should be noted that it is necessary to specify the source, and you also need to embed the control feature in it, so that the user who is using that audio can play or pause it, audio formats may be Ogg, mp3, wav, and so on, which are not specified in the HTML5 draft, but these three audio formats are supported in HTML.TheThere are various browsers such as Chrome, Firefox, Safari, Opera, etc., all of which support all three audio formats mentioned above, except for Safari, which does not support OGG format, but it supports two other audio formats.These audio files have features such as autoplay, autobuffer, controls, loop, muted, preload, src, which we will briefly explain about each of them in the following.
Autoplay:
As you know, this feature detects that the sound should be played as soon as it is ready.
<audio scc = “sound.mp3” autoplay = ”autoplay”>
browser does not support the audio element
</audio>
Controls:
This feature also allows the user to view control buttons such as play, pause, etc., and use them if needed.
Loop:
Through this way, whenever the audio ends, it starts playing again from the beginning and the file can be heard by users repeatedly, the use of this adjective is as follows:
Read more on:https://www.dotnek.com/Blog/Web/learn-how-to-add-audio-and-video-in-html5
YouTube:https://youtu.be/Dlv0i-2auZ4
link:https://dotnek.mystrikingly.com/
Related link:Mobile app development
:: برچسبها:
dotnek ,
seo ,
site ,
:: بازدید از این مطلب : 104
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0