瀏覽代碼

Add console; Remove init function; Simplify this space; New api: volume and toggle

DIYgod 9 年之前
父節點
當前提交
dd73a4e6b6
共有 3 個文件被更改,包括 21 次插入1 次删除
  1. 0 0
      DPlayer.min.js
  2. 0 0
      DPlayer.min.js.map
  3. 21 1
      index.html

File diff suppressed because it is too large
+ 0 - 0
DPlayer.min.js


File diff suppressed because it is too large
+ 0 - 0
DPlayer.min.js.map


+ 21 - 1
index.html

@@ -73,7 +73,27 @@
             maximum: 3000
         }
     });
-    dp.init();
+    dp.on('play', function () {
+        console.log('play');
+    });
+    dp.on('play', function () {
+        console.log('play play');
+    });
+    dp.on('pause', function () {
+        console.log('pause');
+    });
+    dp.on('canplay', function () {
+        console.log('canplay');
+    });
+    dp.on('playing', function () {
+        console.log('playing');
+    });
+    dp.on('ended', function () {
+        console.log('ended');
+    });
+    dp.on('error', function () {
+        console.log('error');
+    });
 
     // stats.js: JavaScript Performance Monitor
     var stats = new Stats();

Some files were not shown because too many files changed in this diff