Home

Issue: 2442

Video.js doesn't work when route on client

[issue link]

Hello. I have very important module that I can’t setup with Nuxt, please help.

<video id="player" class="video-js" controls autoplay>
      <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4"></source>
</video>
mounted () {
    video('player')
  }

This works only if I navigate directly on that page or reload it. This doesn’t work if I navigate to this page from other pages in my app.

How to fix it?

This question is available on Nuxt.js community (#c2117)