question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VimeoPlayer.Play() not working.

See original GitHub issue

I am trying to create a player in unity canvas, so I disabled autoPlay in the inspector of VimeoPlayer and then I am loading a video using: VimeoPlayer.LoadVimeoVideoByUrl(url);

And then when the player press a button I use: VimeoPlayer.Play();

screen shot 2018-09-25 at 17 08 15

But it doesn’t work, also, I tried using functions like Load, and LoadVideoById. I tried to use the “Play Video” inspector button but it also doesn’t work, but the “Load Video” button makes it work, but it inside its code it makes autoPlay active again, and that’s not what I want. It seems the video can’t be played except when autoPlay is active.

screen shot 2018-09-25 at 17 08 37

Steps to reproduce the problem:

  1. Open “CanvasPlayer.unity” scene that comes with the project.
  2. Set “Auto Play” as false in the Vimeo Player Inspector.
  3. Set Vimeo Video as “Get video by ID or URL” in the Vimeo Player Inspector.
  4. Copy any video from your vimeo account in Vimeo Video URL.
  5. Create a button and assign VimeoPlayer.Start() (EDIT: VimeoPlayer.Play()) in the On Click () event.
  6. Play unity.
  7. Click the button you created to play the video. (It doesn’t work)
  8. Click the “Play Video” button in the Vimeo Player inspector. (It also doesn’t work).
  9. Click the “Load Video” button in the Vimeo Player inspector and it will play the video.

Unity version: 2017.3.1f1

Operating system: macOS High Sierra 10.13.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
caseypughcommented, Sep 25, 2018

Thanks @hugostudica - we’ll look into it.

0reactions
caseypughcommented, Sep 28, 2018

OK, did quite a bit of refactoring to make it all much simpler. See #43. It’s in master now, and eventually will make it into 0.9.3 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vimeo javascript api player.play() not playing
A simple fix is to delay the player.play() call... var iframe = document.querySelector('iframe'); var player = new Vimeo.
Read more >
Troubleshoot player error messages
If reloading the player doesn't immediately resolve the issue, check your network connection to make sure it's up and running. If the error...
Read more >
Solutions to Fix Vimeo Videos Not Playing on Chrome/Firefox
Part 2: Solutions for The Vimeo Videos Not Playing Problems on Chrome · Solution 1: Check your Internet connection · Solution 2: Clear...
Read more >
Manually triggered play() method not playing the video #277
Expected Behavior. I'm using a different DOM note to act the play button, by triggering the play() method on the Player object.
Read more >
Vimeo video embedding issue when using JS and NOT ...
When using the iframe methods all seem to work fine - I see the video on the form and can refer to its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found