All Projects → dunizb → SMmuiscPlay

dunizb / SMmuiscPlay

Licence: MIT license
🎼极简模式JavaScript音乐播放器组件,极简、小巧、无依赖、可定制,适用于手机页面,H5活动页,微信页面等的音乐播放支持

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to SMmuiscPlay

wxpusher-sdk-go
微信消息实时推送服务[WxPusher]的go版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.
Stars: ✭ 49 (+22.5%)
Mutual labels:  weixin
scaffold
WIP - Simplified PHP framework, using modern practices and techniques. Making use of the best components available.
Stars: ✭ 56 (+40%)
Mutual labels:  simple
smurf
simple markdown surfer
Stars: ✭ 38 (-5%)
Mutual labels:  simple
DaisyXMusic
Free and Open Source Group Voice chat music player for telegram ❤️ with button support youtube playback support
Stars: ✭ 204 (+410%)
Mutual labels:  music-player
QQMusic
高仿QQ音乐
Stars: ✭ 12 (-70%)
Mutual labels:  music-player
minimal-player
This is a minimal, clean audio/music/mp3 player with spinning cover images, built with jQuery, TweenMax.js and SVG images.
Stars: ✭ 48 (+20%)
Mutual labels:  music-player
wxwork
[企业微信] A fast wxwork development sdk written in Golang
Stars: ✭ 112 (+180%)
Mutual labels:  weixin
laravel-admin
LaravelAdmin是基于PHP开发的基础管理后台系统,做到开箱即用,为新项目开发省去了基础功能开发的步骤;此系统采用前后端分离模式,后端使用Laravel,前端使用vue;主要包含:登录、注销、可视化数据大屏、管理员、角色管理、菜单管理、权限管理、错误日志、登录日志、访问日志、获取服务器CPU使用率、内存使用率等功能。后端主要使用Artisan命令行、Jobs消息队列、 Rules验证规则、Restful API、Composer扩展包、Redis秒杀、Extend自定义扩展类:微信授权、钉钉告警推送、MongoDB、阿里云OSS、七牛云存储、七牛云直播、php-jwt TOKEN、Phpoffice、MySql数据库字典、Elasticsearch等技术。
Stars: ✭ 45 (+12.5%)
Mutual labels:  weixin
advancedSmsManager
Advanced SmsManager is avery handy library for sending sms for single and two sim-card phones with many options.
Stars: ✭ 27 (-32.5%)
Mutual labels:  simple
simple-commands
An (even more) simplified and intuitive command framework for Spigot.
Stars: ✭ 14 (-65%)
Mutual labels:  simple
react-click-to-edit
Make any text editable.
Stars: ✭ 16 (-60%)
Mutual labels:  simple
Cloud-Music
网易云音乐Vue版本,Vue + Vuex + Webpack2 + Vue-router
Stars: ✭ 18 (-55%)
Mutual labels:  music-player
Design-Patterns
Project for learning and discuss about design patterns
Stars: ✭ 16 (-60%)
Mutual labels:  oop
spartana
A grafana clone that does the bare minimum. SRE's dream dashboarding solution
Stars: ✭ 37 (-7.5%)
Mutual labels:  simple
wordpress-eloquent
A library that converts converts wordpress tables into Laravel Eloquent Models.
Stars: ✭ 129 (+222.5%)
Mutual labels:  oop
hugoblog
Hugoblog is responsive, simple, and clean that would fit for your personal blog based on Hugo Theme Static Site Generator (SSG)
Stars: ✭ 48 (+20%)
Mutual labels:  simple
httpfs
Go 编写的静态文件服务器,支持文件拖拽上传,无第三方包依赖, 支持 Windows, Linux , Darwin。
Stars: ✭ 28 (-30%)
Mutual labels:  simple
cactoos-crypto
Crypto extensions for Cactoos library
Stars: ✭ 15 (-62.5%)
Mutual labels:  oop
LuaKit
Lua核心工具包,包含对面向对象,组件系统(灵活的绑定解绑模式),mvc分模块加载,事件分发系统等常用模式的封装。同时提供打印,内存泄漏检测,性能分析等常用工具类。
Stars: ✭ 112 (+180%)
Mutual labels:  oop
PyTunes
A lightweight music player made in Python
Stars: ✭ 38 (-5%)
Mutual labels:  music-player

极简模式JavaScript音乐播放器组件

特点

  • 极简(无花俏布局和样式)
  • 小巧(117行js代码,包括注释和空行)
  • 无依赖(无CSS、图片等依赖)
  • 可定制(自定义设置)

它能做什么?

  • 控制音乐状态(播放、暂停)
  • 灵活的音乐资源配置(单个、多个)
  • 自动音乐列表(无选择列表、有列表)
  • 可指定播放器所在容器(元素、页面)
  • 可指定播放器所在容器位置(顶、左、右、下)
  • 可自动加载音乐资源并播放(浏览器、微信网页等)
  • 可自定义播放器皮肤(按钮、列表)
  • 极简小巧(无图片资源、无CSS样式文件加载)
  • 更友好的用户体验(手机、PC)

场景

适合手机页面,H5活动页,微信页面等的音乐播放支持

示例

index.html文件

使用

构造器:SMmuiscPlay(options)

示例演示页面:index.html

options选项

el [必须]

指定播放器所在容器(元素、页面),不指定则默认挂载在body

SMmuiscPlay({
    el: "app",
    audioUrl: "muisc/xxxx.mp3",
    animaClass: "muiscIconRotate"
});

animaClass [必须]

定义音乐图标旋转动画

定义动画:

@keyframes muiscIconRotate{
    from{transform: rotate(0deg);}
    to{transform: rotate(360deg);}
}

设置animaClass

SMmuiscPlay({
    el: "app",
    audioUrl: "muisc/xxxx.mp3",
    animaClass: "muiscIconRotate"
});

position

播放器位置,CSS定位

SMmuiscPlay({
    el: "app",
    position: "top:10px;left:10px",//左上角
    audioUrl: "muisc/xxxx.mp3"
});

buttonImgSrc

音乐播放按钮图片,强烈建议使用SVG图片

SMmuiscPlay({
    el: "app",
    buttonImgSrc: "icon.png",
    position: "top:10px;left:10px",//左上角
    audioUrl: "muisc/xxxx.mp3"
});

htmls

自定义

SMmuiscPlay({
    el: "app",
    buttonImgSrc: "icon.png",
    position: "top:10px;left:10px",//左上角
    htmls: "<div>....<div>"
    audioUrl: "muisc/xxxx.mp3"
});

更新

2017.10.15 0.0.2 => 0.0.3 去掉了audioList特性

2017.08.30 升级 0.0.1 => 0.0.2

音乐播放图标

  • 默认使用SVG格式
  • 需要自己设置图标的旋转动画

样例,可直接拷贝到页面:

@keyframes muiscIconRotate{
    from{transform: rotate(0deg);}
    to{transform: rotate(360deg);}
}

然后添加animaClass属性:

SMmuiscPlay({
    el: "app",
    audioUrl: "muisc/xxxx.mp3",
    animaClass: "muiscIconRotate"
});
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].