.mp3
and .ogg
format. But In blogger we cant host files so we have to host our files in a external hosting like Dropbox which is a limited storage. In this case When we upload two types of music files (.mp3
, .ogg
) it consumes more space. So, To solve this problem I developed this New HTML5 Music player widget for blogger. In this widget We need only mp3 format to run this widget. so we can save lots of space. ok Let's see the advantages of using this music player.Advantages Of HTML5 Music Player For Blogger
- Easy to install
- It does not affect the page loading speed
- It require only one format(
.mp3
) of music file while other HTML5 player require two type of files (.mp3
,.ogg
) - It's responsive. We can use it in any devices ;)
- And Much More...
Live Demo:-
How To Add This HTML5 Music Player To Your Blog?
Adding The Music Player Script To Your Blog
To add the Widget to your blog Follow the steps given below.- Login to New Blogger Dashboard > Choose your Blog and Click the More Options Dropdown
- Select the Template > Click on Edit HTML > Proceed
- Check/Tick the Expand Template Widgets checkbox
- Now Search for
</head>
- Now save your Template.
Displaying HTML5 Music Player On Your Blog
We had added the HTML5 Music player script to your blog. After that Now We have to display the widget.Displaying the Music player is very simple. Let see how to make it. ;)
Before Displaying it We have to know that we can use this Music player widget in two types
- By Adding it as a Playlist
- By Adding it as a single music file
Adding HTML5 Music Player As A Playlist
To add the Music player widget just paste The following code where you want to Display the playlist.<div class="btnt-player"> <div class="btnt-player-inner nano"> <div class="content"> <ol> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> <li><a data-src="YOUR-MUSIC-FILE-LINK" href="#">MUSIC FILE NAME</a></li> </ol> </div> </div> <div style="clear: both;"> </div> <audio preload="preload"></audio></div>
- After Adding the above code Replace
YOUR-MUSIC-FILE-LINK
with your music file link
note:- You can host you music files in Dropbox - Then Replace
MUSIC FILE NAME
with the Name of the Music File
Adding Single Music File In HTML5 Music Player
If you want To add the single Music file in the Music player, Paste The following code where you want to Display the Player.<audio preload="auto" src="YOUR-MUSIC-FILE-LINK"></audio>
- After Adding the above code Replace
YOUR-MUSIC-FILE-LINK
with your music file link
I Hope you all like this widget Kindly Let me know your thoughts about the widget and don't forget to share it...
Thanks Buddies ;)
0 comments:
Post a Comment