���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/video/layout/js/node_modules/artplayer/src/events/ |
import { includeFromEvent, isMobile } from '../utils'; export default function clickInit(art, events) { const { constructor, template: { $player, $video }, } = art; events.proxy(document, ['click', 'contextmenu'], (event) => { if (includeFromEvent(event, $player)) { art.isInput = event.target.tagName === 'INPUT'; art.isFocus = true; art.emit('focus', event); } else { art.isInput = false; art.isFocus = false; art.emit('blur', event); } }); let clickTime = 0; events.proxy($video, 'click', (event) => { const now = Date.now(); const { MOBILE_CLICK_PLAY, DBCLICK_TIME, MOBILE_DBCLICK_PLAY, DBCLICK_FULLSCREEN } = constructor; if (now - clickTime <= DBCLICK_TIME) { art.emit('dblclick', event); if (isMobile) { if (!art.isLock && MOBILE_DBCLICK_PLAY) { art.toggle(); } } else { if (DBCLICK_FULLSCREEN) { art.fullscreen = !art.fullscreen; } } } else { art.emit('click', event); if (isMobile) { if (!art.isLock && MOBILE_CLICK_PLAY) { art.toggle(); } } else { art.toggle(); } } clickTime = now; }); }