Missing audio sink on Windows prevents video from playing
Status: Beta
Brought to you by:
acolubri
If a video with an audio track is loaded, but there is no audio sink on the system, then the video will load, but no frames will ever become available. On my desktop computer, simply unplugging the headphones causes this to happen. This is not really a GSVideo bug, but perhaps a workaround is possible? Setting a FakeSink allows the video to play:
class SilentGSMovie extends GSMovie {
public SilentGSMovie(PApplet parent, String filename) {
super(parent, filename);
gplayer.setAudioSink(new FakeSink("fakesink"));
}
}
But I don't know how to check if some audio sink is available, and only set the FakeSink if not.