1.2.1 • Published 4 years ago

doz-artwork-player v1.2.1

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

doz-artwork-player

An image with an audio player component

Install

npm install doz-artwork-player

Live here

Example

import Doz from 'doz'
import 'doz-artwork-player'

new Doz({
    root: '#app',
    template(h) {
        return h`
            <doz-artwork-player
                image-url="https://is2-ssl.mzstatic.com/image/thumb/Music123/v4/11/ed/13/11ed13a9-078a-b847-2508-d8dbfde4f48f/190295282363.jpg/600x600bb.jpg"
                audio-url="https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview113/v4/56/5e/0b/565e0b3d-5b2d-9e38-a702-4958d9ec9b6c/mzaf_8755686943666081226.plus.aac.p.m4a"
            />
        `
    }
});

Props

NameDefaultDescription
audio-urlaudio url
image-urlimage url
height100pxcomponent height
width100pxcomponent width
border-radius8pxcomponent border radius

WebComponent

Usage with as WebComponent

<dwc-doz-artwork-player 
    audio-url="..." 
    image-url="..."
    border-radius="50%"
></dwc-doz-artwork-player>

CDN unpkg

<script src="https://unpkg.com/doz-artwork-player/dist/bundle.min.js"></script>

Changelog

You can view the changelog here

License

doz-artwork-player is open-sourced software licensed under the MIT license

Author

Fabio Ricali

1.2.1

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago