All Projects → wilsonwu → vuetify-audio

wilsonwu / vuetify-audio

Licence: MIT license
A Vue audio player base on Vuetify UI framework: https://wilsonwu.github.io/dist/index.html#/vuetifyaudio

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuetify-audio

Aplay
A Better(Maybe) iOS Audio Stream、Cache、Play Framework
Stars: ✭ 44 (-67.88%)
Mutual labels:  player, mp3
Musicplayer
A minimal music player built on electron.
Stars: ✭ 145 (+5.84%)
Mutual labels:  player, mp3
Sjmediacacheserver
A HTTP Media Caching Framework. It can cache FILE or HLS media. 音视频边播边缓存框架, 支持 HLS(m3u8) 和 FILE(mp4, mp3等).
Stars: ✭ 87 (-36.5%)
Mutual labels:  player, mp3
Flutter Assetsaudioplayer
Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
Stars: ✭ 458 (+234.31%)
Mutual labels:  player, mp3
uos
United Open-libraries of Sound. United procedures for open-source audio libraries. For FPC/Lazarus/fpGUI/MSEgui.
Stars: ✭ 112 (-18.25%)
Mutual labels:  player, mp3
Hysteriaplayer
Objective-C audio player, sitting on top of AVPlayer
Stars: ✭ 568 (+314.6%)
Mutual labels:  player, mp3
Sbplayerclient
支持全格式的mac版视频播放器
Stars: ✭ 110 (-19.71%)
Mutual labels:  player, mp3
aplay-
a simple BitPerfect player
Stars: ✭ 23 (-83.21%)
Mutual labels:  player, mp3
plex-music
Web/Desktop app for streaming music from your Plex Media Server
Stars: ✭ 42 (-69.34%)
Mutual labels:  player, mp3
ATtiny85-TinyDFPlayer
MP3-Player
Stars: ✭ 22 (-83.94%)
Mutual labels:  player, mp3
Simple Music Player
Simple Music Player - SimpleMP - Keeps it simple and plays your music
Stars: ✭ 298 (+117.52%)
Mutual labels:  player, mp3
audioStreamDemo
A music player created in swift using AVPlayer to stream audio from server.
Stars: ✭ 33 (-75.91%)
Mutual labels:  player, mp3
Openwhyd
💎 Like Pinterest, for Music
Stars: ✭ 287 (+109.49%)
Mutual labels:  player, mp3
Piano
🎹用键盘8个键演奏一首蒲公英的约定送给自己或月亮代表我的心送给她
Stars: ✭ 850 (+520.44%)
Mutual labels:  player, mp3
lplayer
lplayer is a simple audio player for simply listening
Stars: ✭ 40 (-70.8%)
Mutual labels:  player, mp3
Vue Howler
[UNMAINTAINED] A Howler.js mixin for Vue 2 that makes it easy to create custom audio player components
Stars: ✭ 103 (-24.82%)
Mutual labels:  player, mp3
audio-player
🎵 Music player with custom controls, playlist, filters, and search.
Stars: ✭ 137 (+0%)
Mutual labels:  player, mp3
Audioplayer
Audio Player for Nextcloud and ownCloud
Stars: ✭ 179 (+30.66%)
Mutual labels:  player, mp3
TonUINO
Alternative TonUINO Firmware
Stars: ✭ 112 (-18.25%)
Mutual labels:  player, mp3
retro-winamp-block
A Winamp-styled audio block for all your retro music player needs.
Stars: ✭ 14 (-89.78%)
Mutual labels:  player, mp3

vuetify-audio

Downloads Version License

Vue.js sound audio player base on Vuetify UI framework. Covers audio-tag API and adds more.

Features

  • Support most of audio play in this component.
  • You can set the color you want for all component buttons.
  • Support download the audio file.
  • After audio playing finished or before start the playing, you can do something.
  • Support Dark mode of Vuetify.
  • Support auto play, but if user didn't interact with the document first, the audio can't be played.
  • Support turn on and off audio download button.
  • Support disable the Vuetify Card style, and you can use this component in your own Vuetify Card of your page.
  • You can set custom icons supported by vuetify v-icon component.

Demo

https://wilsonwu.github.io/dist/index.html#/vuetifyaudio

Installation

Use npm: npm install vuetify-audio --save

Prepare

At first make sure your project is Vue project, and has Vuetify as UI framework:

  1. Install Vuetify:
npm install vuetify --save-dev
  1. Add Vuetify to app.js or main.js:
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';

Vue.use(Vuetify);

You also can use Vue plugin to install Vuetify by only one line command:

vue add vuetify

Node: Make sure you are using the default Vuetify iconfont (mdi) or override the icon attributes with some other supported by v-icon component.

Usage

Add below code into your <script>:

export default {
    components: {
        VuetifyAudio: () => import('vuetify-audio'),
    },
    data: () => ({
        file: 'http://www.hochmuth.com/mp3/Boccherini_Concerto_478-1.mp3',
    }),
}

And below code in the <template>:

<vuetify-audio :file="file" color="success" :ended="audioFinish" downloadable></vuetify-audio>

Attributes

  • file (String) (Required): Set audio file for the audio player
  • ended (Function) (Optional): Set callback function name after audio finish
  • canPlay (Function) (Optional): Set callback function name when audio ready for playing
  • color (String) (Optional): Set all component buttons color
  • autoPlay (Boolean) (Optional, default is false): Add it to make the audio auto play, but in some web browsers maybe failed, because some browsers need user active in the page first then allow sound auto play.
  • downloadable (Boolean) (Optional, default is false): Add it to let the audio file can be downloaded.
  • flat (Boolean) (Optional, default is false): When set to true, make the Vuetify Card style to flat, that you can combine other information/image/data with this control in your page.
  • playIcon (String) (Optional, default is mdi-play): Set the icon for play
  • pauseIcon (String) (Optional, default is mdi-pause): Set the icon for pause
  • stopIcon (String) (Optional, default is mdi-stop): Set the icon for stop
  • refreshIcon (String) (Optional, default is mdi-refresh): Set the icon for refresh
  • downloadIcon (String) (Optional, default is mdi-download): Set the icon for download
  • volumeHighIcon (String) (Optional, default is mdi-volume-high): Set the icon for volume
  • volumeMuteIcon (String) (Optional, default is mdi-volume-mute): Set the icon for mute

Known Issues

  1. Audio play pregress bar can't support drag, only support click.

ToDo

  • Create online demo
  • Create npm install
  • Add customize collor for component
  • Add event for end audio
  • Add auto play audio
  • Add downloadable property for audio file
  • Fully support dark mode
  • Add prop for Card flat
  • Add increase or decrease volume of audio
  • Add props for custom icons

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].