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

WebGL: INVALID_VALUE: texImage2D: no video [Safari *only*] #387

Open
camhart opened this issue May 7, 2022 · 1 comment
Open

WebGL: INVALID_VALUE: texImage2D: no video [Safari *only*] #387

camhart opened this issue May 7, 2022 · 1 comment
Labels
🔖3.x v3.x~ related issue

Comments

@camhart
Copy link

camhart commented May 7, 2022

When initializing PanoViewer on Safari, using videojs w/ hls playback, with my complicated setup (haven't been able to simplify a codepen down to recreate it), I'm getting this error when calling const panoViewer = new PanoViewer(view360Container, { ...someopts... }):

WebGL: INVALID_VALUE: texImage2D: no video

If I delay the PanoViewer constructor call, by 1000ms, the error is resolved. If I delay by only 100ms, the error persists. I'm not initializing PanoViewer until after videojs sends the 'ready' event already. But it seems that on Safari there's something else that must occur first, or else the error occurs.

The code is a somewhat complex prototype, but I'm 98% positive (I've been wrong before :D) that it is something internal to PanoViewer.

I'd be willing to share a demo link privately w/ project maintainers if anyone would like to see it.

@camhart
Copy link
Author

camhart commented May 7, 2022

The error is reliably gone if I wait for videojs to report buffering > 0.0. I'm currently checking each time a progress event fires from videojs. But that introduces a blip when you click play on the video. Less than ideal but at least a work around for the time being.

@WoodNeck WoodNeck added the 🔖3.x v3.x~ related issue label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖3.x v3.x~ related issue
Projects
None yet
Development

No branches or pull requests

2 participants