GithubHelp home page GithubHelp logo

sh20raj / audiplay Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 9.0 5.68 MB

AudiPlay - A Free HTML5 Audio Player

Home Page: https://sh20raj.github.io/AudiPlay/

License: MIT License

CSS 1.97% HTML 39.51% JavaScript 58.53%
html5-audio-player audio-player javascript-audio-player shade sh20raj sopplayer

audiplay's Introduction

AudiPlay - HTML5 Audio Player Visitors

AudiPlay Integration - Free HTML5 Audio Player


See

Integration Article

https://codexdindia.blogspot.com/2021/02/audiplay-integration-free-html5-audio.html


Steps To Integrate

Step 1: Use class="audioplay" in Your Audio Tag

<audio controls class="audioplay">
    <source src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/Ark.mp3" type="audio/mp3">
</audio>
<!-- Here is the Audio Tag Library -->

Step 2: Add JavaScript CDN Just Before </body> Tag

<script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script>
<!-- Here is the JavaScript Library -->

Optional: Use Style Attribute for Responsive Audio Player

You can use the style attribute in your Audio tag for a responsive audio player.

<audio controls class="audioplay" style="width: 700px;">
    <source src="Ark.mp3" type="audio/mp3">
</audio>

Additional Features

Disable Download Button

Add nodownload attribute to your Audio Tag to disable the Download Button.

Example:

<audio controls class="audioplay" nodownload>
    <source src="Ark.mp3" type="audio/mp3">
</audio>

Preview

Before Adding AudiPlay

Before Adding AudiPlay

After Adding AudiPlay

After Adding AudiPlay

After Disabling Download with nodownload Attribute

After Disabling Download


Full HTML Example

<audio controls class="audioplay" style="width: 700px;">
    <source src="Ark.mp3" type="audio/mp3">
</audio>

<script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script>

License

This project is licensed under the MIT License.


AudiPlay version 2 with multiple audio support <3 :- Documentation | GitHub Repo Want the Old Version :- https://github.com/SH20RAJ/AudiPlay/tree/old or Use it from Themes - https://github.com/SH20RAJ/AudiPlay/tree/main/themes/old


Feel free to modify this Project as needed for your project!

audiplay's People

Contributors

sh20raj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

audiplay's Issues

Doesn't work when audio element is created after page load

I am creating audio element after page load using jquery and then appending to body. At that time it doesn't seem to work.
<audio controls class="audiplay vam" nodownload> <source src="' . $trackSource . '" type="audio/mp3" /> </audio>

multiple audio tags on the same page

hi , i was wondering if you can help me with this error , if i added more than 1 audio tag it works pretty fine with the first one and the rest audio tags stay the same and nothing happen , also they all have the same class name , tyvm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.