vue-plyr
vue-plyr copied to clipboard
`v-if` not working with plyr.
So, I have this code,
<vue-plyr v-if="devotionalVideoSrc && globalVideoState === VideoPlayerState.playing"> <video controls> <source size="1080" :src="devotionalVideoSrc" type="video/mp4" /> </video> </vue-plyr>
And I have a button that toggles the globalVideoState
. When I click, and the globalVideoState
is changed to VideoPlayerState.playing
, it loads like it should. However, when I click it again two more times (so I toggle it to open again) it doesn't show. Idk what is going on.