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

Bug in Unity 6: Cannot fall back to other approach if Unity fails to play a video #517

Open
achimmihca opened this issue Jan 30, 2025 · 1 comment

Comments

@achimmihca
Copy link
Collaborator

achimmihca commented Jan 30, 2025

Actual behaviour

In Melody Mania, when Unity fails to load a video then libVLC is used as fallback.

This failed in Unity 6 because of a Unity bug: VideoPlayer.errorReceived callback is not fired such that Melody Mania cannot handle the issue.
This was working fine in Unity 2023.12.f1 (in this version, VideoPlayer.errorReceived was called as expected).

I opened a bug report, which has been confirmed by Unity (IN-94095). You can find a reproducible example on GitHub.
Let's hope they fix their broken platform.

Expected behaviour

If Unity fails to play a video, then Melody Mania should fall back to use a different approach.

For UltraStar Play, this is irrelevant because it does not use the fallback mechanism via libVLC.
If Unity cannot play the file then UltraStar Play cannot play the file.

Details

  • Game version: Melody Mania v1.4.4-beta4
    • Note that Unity 6 was only used in the beta version of Melody Mania, not yet in a stable release.
    • Due to this bug, the next beta of Melody Mania will downgrade to Unity 2023.12.f1

Implementation hints

  • Workaround: stay with Unity 2023.12.f1

Error message

WindowsVideoMedia error 0xc00d5212 while reading SomeArtist - SomeTitle.avi
@achimmihca achimmihca changed the title Bug in Unity 6, VideoPlayer.errorReceived callback not triggered Bug in Unity 6: Cannot fall back to other approach if Unity fails to play a video Jan 30, 2025
@achimmihca
Copy link
Collaborator Author

Should be working again in Melody Mania v1.4.4-beta5 (downgraded to old Unity version)

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

No branches or pull requests

1 participant