1.0.1 • Published 5 years ago

funplayer v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

说明

funplayer 是风行的PC及移动站的播放器封装包,支持长视频,短视频,直播媒体的播放

开始

  1. Install

    $ npm install funplayer
  2. 使用步骤

    步骤 1:

    <div id="funplayer"></div>

    步骤 2:

    import { Player, VodPlugin } from 'funplayer';
    const player = new FunPlayer();
    player.setup( 
        new VodPlugin({ 
            mediaid:1000 
        }) 
    );
  3. 简洁引入方式

    步骤 1:

    <div>
        <script src="http://static.funshin.com/sdk/js/funplayer.min.js?plus=vod&mediaid=1000"></script>
    </div>

协议

ISC

1.0.1

5 years ago

1.0.0

5 years ago