VimeoPlayer.Play() not working.
See original GitHub issueI 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();

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.

Steps to reproduce the problem:
- Open “CanvasPlayer.unity” scene that comes with the project.
- Set “Auto Play” as false in the Vimeo Player Inspector.
- Set Vimeo Video as “Get video by ID or URL” in the Vimeo Player Inspector.
- Copy any video from your vimeo account in Vimeo Video URL.
- Create a button and assign VimeoPlayer.Start() (EDIT: VimeoPlayer.Play()) in the On Click () event.
- Play unity.
- Click the button you created to play the video. (It doesn’t work)
- Click the “Play Video” button in the Vimeo Player inspector. (It also doesn’t work).
- 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:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks @hugostudica - we’ll look into it.
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.3release.