You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build for WebGL and the token is missing (either stripped by the building process or not included at all). I see that there is a VimeoSettings class that is used in VimeoBuildProcessor to set the token on build but nowhere in the README file says I should include a VimeoSettings component in the scene. Is the documentation missing something? Should the VimeoPlayer contain the settings?
Steps to reproduce the problem
Added package in the project
Added a VimeoPlayer (Canvas) object in my scene
Removed the Canvas and made it a child on my already existing Canvas and configured the video surface size to fit my scene.
Used the VimeoPlayer component to successfully login
Added a link for a private video (owned by me/in my account)
Built for WebGL
Deployed to test hosting
This error is displayed after scene loading is complete:
{
"error": "Something strange occurred. Please contact the app owners.",
"link": null,
"developer_message": "No user credentials were provided.",
"error_code": 8003
}
I inspect the requests sent by the browser and I see an API request to Vimeo with the following header:
Authorization: Bearer
which means the token is missing.
Unity version
2018.2.0f2
Operating system
Ubuntu 16.04 (KDE neon User Edition 5.13)
The text was updated successfully, but these errors were encountered:
I checked out your repo, built one of your scenes for WebGL and it seems to bundle the token properly. I also tried building my project in OSX 10.12.6 with Unity 2018.2.1f1 but the issue persists.
I also checked the actual playerprefs file and the token is stored properly inside.
Any more ideas?
Ok, another update. The VimeoBuildProcessor's OnProcessScene assumes that the player will be direct child of the scene root. My setup positions VimeoPlayer in a (not so complex but quite deep) hierarchy of Canvas/UI elements thus not being able to be found by the build processor.
I'm going to fix that for my project, so do you accept pull requests regarding this or it's something you want to keep as is?
Hey @ragecryx - sorry for the trouble and thanks for uncovering the issue. We definitely accept PRs! Although, I went ahead and created one which should resolve the issue (see #39)
Describe the issue
I build for WebGL and the token is missing (either stripped by the building process or not included at all). I see that there is a
VimeoSettings
class that is used inVimeoBuildProcessor
to set the token on build but nowhere in the README file says I should include aVimeoSettings
component in the scene. Is the documentation missing something? Should theVimeoPlayer
contain the settings?Steps to reproduce the problem
I inspect the requests sent by the browser and I see an API request to Vimeo with the following header:
which means the token is missing.
Unity version
2018.2.0f2
Operating system
Ubuntu 16.04 (KDE neon User Edition 5.13)
The text was updated successfully, but these errors were encountered: