add config dir

This commit is contained in:
Harvey Zack committed 2018-10-16 09:57:20 +08:00
1 parent 682dda0ec8
commit 32478ecb14
16 files changed
+212 -135

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { clamp } from './utils';
import mediaElement from './utils/mediaElement';
import config from './config';
export default class Player {
constructor(art) {
@@ -21,7 +21,7 @@ export default class Player {
eventBind() {
const { proxy } = this.art.events;
const { $video } = this.art.refs;
const { events } = mediaElement;
const { events } = config.video;
events.forEach(eventName => {
proxy($video, eventName, event => {
this.art.emit(`video:${event.type}`, event);