I found what is causing videos to not work in my game.
There has been issues where I have had inconsistent problems with videos sometimes not working.
In Win 11 if there is no active sound device the videos do not appear.
I have multiple audio devices - USB, Bluetooth and the HDMI from the video and if none are active when the game is started there will be no video. Sometimes when I start the computer I forget to turn on the speakers or headphones and I have the HDMI output disabled.
You can test this by disabling all sound devices in the windows settings.
There is actually an error in the log files when there is no audio device present.
There has been issues where I have had inconsistent problems with videos sometimes not working.
In Win 11 if there is no active sound device the videos do not appear.
I have multiple audio devices - USB, Bluetooth and the HDMI from the video and if none are active when the game is started there will be no video. Sometimes when I start the computer I forget to turn on the speakers or headphones and I have the HDMI output disabled.
You can test this by disabling all sound devices in the windows settings.
There is actually an error in the log files when there is no audio device present.
Code:
Audio and video init failed. Proceeding anyway.
Traceback (most recent call last):
File "D:\Games - WD\Ren'Py\_F95 Zone_\Corrupted Academy\renpy\audio\audio.py", line 1048, in init
renpysound.init(renpy.config.sound_sample_rate, 2, bufsize, False, renpy.config.equal_mono, renpy.config.linear_fades)
File "renpysound.pyx", line 466, in renpy.audio.renpysound.init
File "renpysound.pyx", line 111, in renpy.audio.renpysound.check_error
Exception: WASAPI can't find requested audio endpoint: Element not found.