소스 검색

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
DPlayer.min.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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();

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.