audio-player

WebJar for audio-player

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-monkick-audio-player
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

audio-player
WebJar for audio-player
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/monkick/audio-player

Download github-com-monkick-audio-player

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-monkick-audio-player/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-monkick-audio-player</artifactId>
    <version>1.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-monkick-audio-player/
implementation 'org.webjars.bower:github-com-monkick-audio-player:1.4.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-monkick-audio-player/
implementation ("org.webjars.bower:github-com-monkick-audio-player:1.4.0")
'org.webjars.bower:github-com-monkick-audio-player:jar:1.4.0'
<dependency org="org.webjars.bower" name="github-com-monkick-audio-player" rev="1.4.0">
  <artifact name="github-com-monkick-audio-player" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-monkick-audio-player', version='1.4.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-monkick-audio-player" % "1.4.0"
[org.webjars.bower/github-com-monkick-audio-player "1.4.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : github-com-polymer-polymer jar [2.0.0,3)
org.webjars.bower : github-com-polymerelements-iron-demo-helpers jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on webcomponents.org

<audio-player>

simple audio player.
This is playing with web audio api.
Just write the path to the sound file and you can play it.

Version

1.9.0

DEMO

<audio-player src="./demo/sound.mp3" volume="5" button></audio-player>

Installation

$ bower install --save monkick/audio-player

Usage

At first. Import it at header.

    <link rel="import" href="../bower_components/scatter-menu/scatter-menu.html">
    <link rel="import" href="../bower_components/scatter-menu/scatter-menu-item.html">

Next. Add the scatter-menu custom tag in body.

    <scatter-menu id="menu" row="3" col="3">
        <scatter-menu-item menu-title="menu01" menu-order="1" menu-space="80"></scatter-menu-item>
        <scatter-menu-item menu-title="menu02" menu-order="2" menu-space="80"></scatter-menu-item>
        <scatter-menu-item menu-title="menu03" menu-order="3" menu-space="80"></scatter-menu-item>
        <scatter-menu-item menu-title="menu04" menu-order="1" menu-space="80" menu-column="2"></scatter-menu-item>
        <scatter-menu-item menu-title="menu05" menu-order="2" menu-space="80" menu-column="2"></scatter-menu-item>
        <scatter-menu-item menu-title="menu06" menu-order="3" menu-space="80" menu-column="2"></scatter-menu-item>
        <scatter-menu-item menu-title="menu07" menu-order="1" menu-space="80" menu-column="3"></scatter-menu-item>
        <scatter-menu-item menu-title="menu08" menu-order="2" menu-space="80" menu-column="3"></scatter-menu-item>
        <scatter-menu-item menu-title="menu09" menu-order="3" menu-space="80" menu-column="3"></scatter-menu-item>
    </scatter-menu>
  • src: path of sound file
  • volume: Volume range 1 to 10
  • button: Add button argument that button will appear for play sound file. If you want control myself than you can see demo/index.html.

Event

  • onend: It fire when audio is over.

Parameter

  • control: appear control ui.
  • analyze: appear svg of analyze to sound.
  • type: form of analyze svg. set to line or circle.
  • loop: can loop play.

Method

  • _play: play sound.
  • _stop: stop sound.
  • _silent: play silent sound. For sound from iOS.

Versions

Version
1.4.0