Static GitHub Issues

[2442] Video.js doesn't work when route on client

prev: in nested routes parent page data resets
next: where is the router-view in nuxt.js?

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?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2117">#c2117</a>)</em></sub></div>