player.js: Events don't work

I am loading the private video within the platform, but after loading the play, pause, ended and other events are not called correctly.

Below is my code for you to see:

<div :id="'video-vimeo-' + codigo" :class="embededClass ? 'embeded-video' : null" />
this.$nextTick().then(() => {
      ler player = new Player('video-vimeo-' + this.codigo, {
          id: this.codigo,
          width: this.width,
          height: this.height,
          loop: false
      })
      player.on('play', event => {
          console.log('play')
          this.$emit('play', event)
      })
      player.on('pause', event => {
          console.log('pause')
          this.$emit('pause', event)
      })
      player.on('ended', event => {
          console.log('ended')
          this.$emit('ended', event)
      })
      player.on('timeupdate', event => {
          console.log('timeupdate')
          this.$emit('timeupdate', event)
      })
  })

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 17 (4 by maintainers)

Most upvoted comments

We just pushed an update that we think will resolve the issue. Let us know if you’re still seeing it.

Thanks for reporting this issue. We’re looking into this right now. For those encountering this issue in a web browser, can you provide steps for reproduction?

Everything is working as expected now.

Thanks Vimeo team!

I was also experiencing this issue in a web browser, but I confirm it is now fixed in the last ~10 minutes. That fix appears to have worked for my environment.

I call in vue web browser app. In localhost work correctly, but when build for production, don’t work more.

Our app is having the same issue.

On iOS devices, events are not being fired for the embedded player SDK. Events are working correctly on Android devices, and in the browser.

According to our customers, this issue started happening around yesterday afternoon.

events are also not working in react native webview the same code in browser is working but in webview not

<html lang="en">
  <head>
    <script src="https://player.vimeo.com/api/player.js"></script>
  </head>

  <body>
    <iframe
      id="vimeo-iframe"
      src="https://player.vimeo.com/video/888767187"
      width="100%"
      height="100%"
      style="border: 0"
    ></iframe>
  </body>

  <script>
    function addListeners() {
      const iframe = document.querySelector('iframe');
      const player = new Vimeo.Player(iframe);

      player.on('play', (e) => window.alert('asd'));

      window.alert(iframe);
    }

    setTimeout(addListeners, 1000);
  </script>
</html>