Open khalidmahmood99 opened 4 years ago
Most probably a CORS issue, WebGL can´t fetch url´s outside the domain of the installed build, unless you use a proxy, I´m trying to do the same with other assets, still working on a solution.
If you are using AVPRO make sure you select adaptive resolution and for the vimeo token, do not generate it from "Get Token" button because you will get CORS issue. Instead go to https://developer.vimeo.com/ and create a new app, and then you can generate a API token and insert it into Unity. This will fix the CORS issue and you will be able to play the videos from Webgl. Make sure to setup AVPRO (hls.js or dash.js)
If you are not using AVPRO then you will not be able to play the videos on Webgl because Unity Media player does not support adaptive resolution.
If you don't select adaptive resolution vimeo will not return .m3u8 (hls.js) or .mpd (dash.js) and you will get playback error.
I´m able to play Vimeo videos using the unity media player on WebGL without adaptive resolution. Problem is that 1 out of 25 times I get a CORS error while in the middle of the video because Access-control-allow-origin comes with a value of null. I´m about to stop paying for Vimeo pro and just change the provider.
@germancinho Would you mind giving some pointers on how you got it working?
@germancinho Would you mind giving some pointers on how you got it working?
this SDK definitely doesn't work well on WebGL, so in the end, I've implemented the Vimeo Player API (https://github.com/vimeo/player.js/) via jslib.
I'm getting the below issue when trying to stream video on WebGl. It's working fine on all other platforms
"Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources"
1- Upload a video on vimeo
2- Test in Unity - Working fine 3- Test in Android and iOS - Working fine 4- Test in Web GL and loading is failed
2019.2.6f1
Mac OS