Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get rid of v-html (and associated warning)
Instead fetchTracks() can be called from options().

Signed-off-by: Frederic Ruget <[email protected]>
  • Loading branch information
douzebis authored and beardhatcode committed May 25, 2021
commit f6819425477d6e21cdd3fbd3452adea94f55ee86
3 changes: 2 additions & 1 deletion src/components/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- Plyr currently replaces the parent. Wrapping to prevent this
https://github.com/redxtech/vue-plyr/issues/259 -->
<div v-if="davPath">
<div v-html="fetchTracks()" />
<!-- <div v-html="fetchTracks()" /> -->
<VuePlyr
ref="plyr"
:options="options"
Expand Down Expand Up @@ -93,6 +93,7 @@ export default {
return this.$refs.plyr.player
},
options() {
this.fetchTracks()
return {
autoplay: this.active === true,
captions: { active: false, language: 'auto', update: true },
Expand Down