1.0.13 • Published 4 months ago

amad-player v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Amad Player

Amad Player is a customizable Vue.js component for creating audio and video players. It provides a simple and flexible player with basic controls such as play/pause, volume control, seek functionality, and full-screen mode for videos. This package is perfect for integrating audio and video players into your Vue.js applications.

Demo

Check out the live demo here: Demo Link.

Installation

To install Amad Player via npm:

npm i amad-player

Usage

Once installed, you can use the audio and video player components in your Vue.js app.

Importing the Player Component

import { AmadAudio, AmadVideo } from 'amad-player';

Import the AmadPlayer styles from 'amad-player/style.css'. For example:

@import 'amad-player/style.css';

Using Amad Audio

Add the AmadAudio component in your template

import { AmadAudio } from 'amad-player';
  <AmadAudio
    :file="audioFile"
  />

Using Amad Video

Add the AmadVideo component in your template

import { AmadVideo } from 'amad-player';
  <AmadVideo
    :file="audioFile"
  />

Configuration

Props for Audio Player (AmadAudio)

PropTypeDefaultDescription
filestringnullaudio src (required)
autoPlaybooleanfalsefor autoplay audio
skipbooleantruefor skip buttons
preloadstringmetadatapreload
loopbooleanfalseplay audio in loop
titlestringnullthe title of the audio
bgColorstring#333background color
textColorstring#ffftext color
barColorstring#d1d5dbbar color
barSeekerColorstringnullbar seeker color
iconStylestring#333icons color
spinnerColorstring#fffloading spinner
showLoadingbooleantruedisplay loading on load

Props for Video Player (AmadVideo)

PropTypeDefaultDescription
filestringnullaudio src (required)
posterstringnullposter or thumbnail
preloadstringmetadatapreload
autoPlaybooleanfalsefor autoplay audio
loopbooleanfalseplay audio in loop
titlestringnullthe title of the audio
skipbooleantruefor skip buttons
iconStylestring#333icons color
1.0.13

4 months ago

1.0.12

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.7

4 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago