mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
build all packages
This commit is contained in:
1 parent
416e79705c
commit
0af2403bb8
8 files changed
+43
-17
No files matched your search
@@ -1,12 +1,20 @@
|
||||
import config from './config';
|
||||
import { clamp, getExt } from './utils';
|
||||
|
||||
export default class Mobile {
|
||||
constructor(art) {
|
||||
const {
|
||||
option,
|
||||
events: { proxy },
|
||||
template: { $video },
|
||||
} = art;
|
||||
|
||||
config.video.events.forEach(eventName => {
|
||||
proxy($video, eventName, event => {
|
||||
art.emit(`video:${event.type}`, event);
|
||||
});
|
||||
});
|
||||
|
||||
Object.keys(option.moreVideoAttr).forEach(key => {
|
||||
$video[key] = option.moreVideoAttr[key];
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user