Coder Social home page Coder Social logo

Comments (9)

Timibadass avatar Timibadass commented on June 19, 2024 1

I thought the docs says using no-ssr is optional?. Thanks though, it helped me fix the bug

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on June 19, 2024

Please share some example code or repo so I can see the issue.

from vue-vimeo-player.

Timibadass avatar Timibadass commented on June 19, 2024

here's the part of my code that has to do with the player
<vimeo-player class="videoplayer" ref="video" :video-id="video_id" :autoplay=true :player-width='playerWidth' :player-height="playerHeight"></vimeo-player>

my data:
data() { return { video_id: 'videoID', playerHeight: '', playerWidth: '', } }

the playerHeight and playerWidth is set in methods on loading of the page.

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on June 19, 2024

Something is preventing the player to mount. Are you using the no-ssr component in nuxt? Because it shouldn't be rendered on the server.

from vue-vimeo-player.

anthonygore avatar anthonygore commented on June 19, 2024

Not sure this should be closed, I think the docs should make it clear that the ssr: false option is not sufficient. Can add as PR if you need

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on June 19, 2024

Should be fixed, thanks @anthonygore

from vue-vimeo-player.

studiolathe avatar studiolathe commented on June 19, 2024

Hi @dobromir-hristov

I am facing the same issue and error message when refreshing page in Nuxt. I am using the component inside a parent component which displays the video conditionally if a video-id is supplied via a prop (I have tried both v-if and v-show). See code below:

<div class="section-header-video__container" v-if="videoSrc">
  <client-only>
    <vimeo-player
      ref="player"
      :video-id="videoSrc"
      :controls="false"
      :autoplay="true"
      :loop="true"
      :options="videoOptions"
    />
  </client-only>
</div>

To be clear, the video-id is definitely being passed to the parent component and it works fine on first load but throws error on refresh. Any tips on solving?

Thanks!

from vue-vimeo-player.

dobromir-hristov avatar dobromir-hristov commented on June 19, 2024

This is very odd. I don't see a reason why it should error

from vue-vimeo-player.

studiolathe avatar studiolathe commented on June 19, 2024

@dobromir-hristov I have just resolved the issue – it was seperate component causing a mounting error and in turn breaking the app.

Thanks for the great module!

from vue-vimeo-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.