Skip to content

Commit

Permalink
[fix] fix android wechat playsinline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jan 9, 2018
1 parent a131a12 commit 334a9a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ const accessorMap = {
const val = value ? '' : undefined;
this.dom.setAttr('video', 'playsinline', val);
this.dom.setAttr('video', 'webkit-playsinline', val);
// fix android wechat bug
this.dom.setAttr('video', 'x5-playsinline', val);
this.dom.setAttr('video', 'x5-video-player-type', value ? 'h5' : undefined);
return value;
},
Expand Down

0 comments on commit 334a9a6

Please sign in to comment.