mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
add config dir
This commit is contained in:
1 parent
682dda0ec8
commit
32478ecb14
16 files changed
+212
-135
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user