Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Streaming Not Working on WebGL #126

Open
khalidmahmood99 opened this issue Sep 22, 2020 · 5 comments
Open

Video Streaming Not Working on WebGL #126

khalidmahmood99 opened this issue Sep 22, 2020 · 5 comments

Comments

@khalidmahmood99
Copy link

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

@parsec3d
Copy link

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.

@epicoro
Copy link

epicoro commented Mar 20, 2021

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.

@germanbv
Copy link

germanbv commented May 8, 2021

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.

@Mosel3y
Copy link

Mosel3y commented Jul 27, 2021

@germancinho Would you mind giving some pointers on how you got it working?

@germanbv
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants