Browse Source

add video poster

pull/1367/head
min.tang 8 years ago
parent
commit
b4db38ca12
  1. 7
      src/dom_components/model/ComponentVideo.js

7
src/dom_components/model/ComponentVideo.js

@ -17,6 +17,7 @@ module.exports = Component.extend(
ytncUrl: 'https://www.youtube-nocookie.com/embed/', ytncUrl: 'https://www.youtube-nocookie.com/embed/',
viUrl: 'https://player.vimeo.com/video/', viUrl: 'https://player.vimeo.com/video/',
loop: 0, loop: 0,
poster: '',
muted: 0, muted: 0,
autoplay: 0, autoplay: 0,
controls: 1, controls: 1,
@ -178,6 +179,12 @@ module.exports = Component.extend(
placeholder: 'eg. ./media/video.mp4', placeholder: 'eg. ./media/video.mp4',
changeProp: 1 changeProp: 1
}, },
{
label: 'Poster',
name: 'poster',
placeholder: '',
changeProp: 1
},
this.getAutoplayTrait(), this.getAutoplayTrait(),
this.getLoopTrait(), this.getLoopTrait(),
this.getControlsTrait() this.getControlsTrait()

Loading…
Cancel
Save