Skip to content

Commit

Permalink
feat: allow specifying which vimeo events to emit
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromir-hristov committed Mar 3, 2021
1 parent a95ab49 commit 5c63097
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/VimeoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export default {
controls: {
type: Boolean,
default: true
},
eventsToEmit: {
type: Array,
default: () => eventsToEmit
}
},
setup (props, { emit }) {
Expand Down Expand Up @@ -107,7 +111,7 @@ export default {
emit('error', error, player)
})
eventsToEmit.forEach(event => emitVueEvent({ player, event, emit }))
props.eventsToEmit.forEach(event => emitVueEvent({ player, event, emit }))
}
onMounted(() => {
Expand Down

0 comments on commit 5c63097

Please sign in to comment.