redxtech / vue-plyr

A Vue component for the plyr (https://github.com/sampotts/plyr) video & audio player.
Other
768 stars 136 forks source link

reload componentn when language changed #513

Open bluelemonade opened 1 year ago

bluelemonade commented 1 year ago

how can i force a reload of the componente when i change the language on the page in a floater. Is there a function to do this?

<vue-plyr :options="optionsAudio" ref="vplyraudio2" @play="vPlayCheck('audio2')" >
        <audio controls crossorigin playsinline>
              <source
                   :src="'/mp3/' + audiobasename' + '_' + store.state.language + '.mp3'"
                   type="audio/mp3"
              />  
        </audio>
</vue-plyr>  

I tried to use :key="store.state.language", but with each language change, the old language remains, but without the global css style for plyr

image

image