Skip to content

Commit

Permalink
fix: for video objectFit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and luckyadam committed Dec 31, 2019
1 parent 24701e6 commit cd36ca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taro-components/src/components/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ class Video extends Component {
src,
autoplay,
className,
style,
id,
initialTime,
loop,
Expand Down Expand Up @@ -455,6 +456,7 @@ class Video extends Component {
muted,
start: initialTime,
className: classnames('taro-video-video', className),
style: Object.assign({ objectFit }, style),
ref: this.getVideoRef,
playsinline: true,
'webkit-playsinline': true,
Expand All @@ -468,7 +470,6 @@ class Video extends Component {
onError: this.onError,
onDurationChange: this.onLoadedMetadata
}

const videoNode = (
<div
className={classnames('taro-video-container', {
Expand Down

0 comments on commit cd36ca1

Please sign in to comment.