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

This commit is contained in:
DIYgod 2016-08-12 15:40:13 +08:00
parent d933909a3c
commit dd73a4e6b6
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
3 changed files with 25 additions and 5 deletions

6
DPlayer.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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();