添加事件文档

This commit is contained in:
Harvey committed 2019-11-20 15:30:11 +08:00
1 parent 339ec6a163
commit de20a350e6
9 files changed
+152 -14

No files matched your search

@@ -10,7 +10,7 @@ export default function fullscreenMix(art, player) {
} = art;
const screenfullChange = () => {
art.emit('fullscreen:change', screenfull.isFullscreen);
art.emit('fullscreenChange', screenfull.isFullscreen);
};
const screenfullError = () => {
@@ -44,7 +44,7 @@ export default function fullscreenMix(art, player) {
screenfull.request($player).then(() => {
addClass($player, 'artplayer-fullscreen');
player.aspectRatioReset = true;
art.emit('fullscreen:enabled');
art.emit('fullscreenEnabled');
});
} else {
if (player.fullscreenWeb) {
@@ -54,7 +54,7 @@ export default function fullscreenMix(art, player) {
screenfull.exit().then(() => {
removeClass($player, 'artplayer-fullscreen');
player.aspectRatioReset = true;
art.emit('fullscreen:exit');
art.emit('fullscreenExit');
});
}
},