Skip to content

Commit 34422d5

Browse files
committed
feat: add <Video> component
1 parent f641aa0 commit 34422d5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Video/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,12 @@ export class Video extends Component<IVideoProps, IVideoState> implements IVideo
185185

186186
render () {
187187
const {props, event} = this;
188-
const {children, src, autoPlay, loop, muted, preload, volume, noJs} = props;
188+
const {children, render, noJs, ...rest} = props;
189189

190190
this.video = h('video', {
191+
...rest,
191192
ref: this.ref,
192193
controls: false,
193-
src,
194-
autoPlay,
195-
loop,
196-
muted,
197-
preload,
198-
volume,
199194
onAbort: event('onAbort'),
200195
onCanPlay: event('onCanPlay'),
201196
onCanPlayThrough: event('onCanPlayThrough'),

0 commit comments

Comments
 (0)