Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to integrate music player in your webpage

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 240
    Comment on it

    Hello Reader's if you want to integrate the audio player which play mp3 music from your server, Then this blog is helpful to you.

    Now html5 offers you very convenient way to use multimedia in web page. You just have to use the <audio controls> tag and specify the location of mp3 audio in it. Lets see the code and output of it.

    <audio controls>
      <source src="yourmp3.ogg" type="audio/ogg">
      <source src="files/music/yourmp3.mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>
    

    Output:-

    Audio player in html5 will look same as video play just the difference is it tag name is 'audio control' where you have to set the file location of music in mp3 format. And audio player will shown up.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: