Closed xvendo closed 1 year ago
`
<b-button :id="'video-copy-no-autoplay' + file.id" v-clipboard="getCurrentVideoCode(file)" block variant="primary"> Copy to clipboard </b-button>`
`getCurrentVideoCode(file) {
let videoHtml; videoHtml = '<video controls autoplay style="width: 100%; height: auto;">' + '<source src="' + file.url + '" type="video/mp4"> Your browser does not support HTML5 video.</video>'; if (file.id == this.autoplay) { console.log('no autoplay') videoHtml = '<video controls style="width: 100%; height: auto;">' + '<source src="' + file.url + '" type="video/mp4"> Your browser does not support HTML5 video.</video>'; } return videoHtml; }`
When the button got clicked it shows always the result including "autoplay". It seems that as soon as it gets the default result, it stays with it.
Thank you for that cool package!
`
`getCurrentVideoCode(file) {
When the button got clicked it shows always the result including "autoplay". It seems that as soon as it gets the default result, it stays with it.
Thank you for that cool package!