New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

maudio

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maudio

Docs and Demos ================

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Docs and Demos

showcase

image

feature

1、支持音频显示缓冲、拖拽进度、显示时间

2、支持多个音频轮播

3、ios手机的浏览器支持倍数播放

install

npm install maudio --save-dev --registry=http://registry.cnpm.seeyouyima.com

How to use?

HTML

  <body>

       <div class="maudio">
          <div class="play-timeline">
            <div class="time-label left">00:00</div>
            <div class="time-label right">00:00</div>
            <div class="audio-progress-wrap">
              <div class="audio-progress">
                <div class="audio-total"></div>
                <div class="audio-loading"></div>
                <div class="audio-current-point">
                  <i class="circle" id="maudio-progress-ctrl"></i>
                </div>
              </div>
            </div>
          </div>
          <div class="play-options">
            <div class="option-item">
              <div class="item-smaller">
                <div class="maudio-pre"></div>
              </div>
            </div>
            <div class="option-item">
              <div class="maudio-btn play"></div>
            </div>
            <div class="option-item">
              <div class="item-smaller">
                <div class="maudio-next"></div>
              </div>
            </div>
            <div class="maudio-speed">
              1x
            </div>
          </div>
       </div>

    </body>

javascript

基础使用
const MAudio = require('meetyou.maudio');

var audio = new MAudio({
  urlArray: ['http://ybbvideo.listenvod.com/video/tools/5b18ded103c8b.mp4','http://ybbvideo.listenvod.com/video/tools/5b34461bc18d6.mp4']
});

audio.play();


Is it easy to use ? 😂

高级使用
const MAudio = require('meetyou.maudio');

var audio = new MAudio({
  urlArray: ['http://ybbvideo.listenvod.com/video/tools/5b18ded103c8b.mp4','http://ybbvideo.listenvod.com/video/tools/5b34461bc18d6.mp4'],
  autoplay: true,
  beforePre: function(next){
    console.log('maudio pre');
    next();
  },
  beforeNext: function(next){
    console.log('maudio next');
    next();
  }
});

audio.play();

All Popup options

propertydescription
play播放
pause暂停

demo

https://linweiwei123.github.io/maudio/example/index.html

FAQs

Package last updated on 23 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc