1 4
import { unique } from '@remax/shared';
2

3 4
export const alias = {
4
  className: 'class',
5
  src: 'src',
6
  id: 'id',
7
  style: 'style',
8
  poster: 'poster',
9
  posterSize: 'posterSize',
10
  objectFit: 'objectFit',
11
  initialTime: 'initial-time',
12
  duration: 'duration',
13
  controls: 'controls',
14
  autoplay: 'autoplay',
15
  direction: 'direction',
16
  loop: 'loop',
17
  muted: 'muted',
18
  showFullscreenBtn: 'show-fullscreen-btn',
19
  showPlayBtn: 'show-play-btn',
20
  showCenterPlayBtn: 'show-center-play-btn',
21
  showMuteBtn: 'show-mute-btn',
22
  enableProgressGesture: 'enableProgressGesture',
23
  mobilenetHintType: 'mobilenetHintType',
24
  onPlay: 'onPlay',
25
  onPause: 'onPause',
26
  onEnded: 'onEnded',
27
  onTimeUpdate: 'onTimeUpdate',
28
  onLoading: 'onLoading',
29
  onError: 'onError',
30
  onFullScreenChange: 'onFullScreenChange',
31
  onTap: 'onTap',
32
  onClick: 'onTap',
33
  onUserAction: 'onUserAction',
34
};
35

36 4
export const props = unique(Object.values(alias));

Read our documentation on viewing source code .

Loading