I was doing an experiment of supporting audio playback in this plugin. This requires some also experimental, although relatively minor changes to the engine too, because I wanted the plugin to use standard engine's audio output instead of having its own.
This is achieved by exposing "audio player" interface in plugin API. The experimental draft may be seen here:
https://github.com/adventuregamestudio/ags/pull/2256
The test game that I quickly made up with two tiny pieces from "Lawrence of Arabia" movie (because I was too lazy searching for any suitable ogv files).
https://www.dropbox.com/s/c8vljxe5m3znji9/test--videoaudio.zip?dl=0
As may be seen in the demo, two videos may be played at the room background by pressing buttons on GUI. They are played with sound, and may play simultaneously. The game keeps working while the videos play (cursor moves, buttons are clickable, character may be walked around).
There's a strange issue where a number of last video frames is not rendered, videos got stuck at some point. From the first glance this is not a desynchronization, but actually frames not advancing or not drawn. They are present in original files.
This is achieved by exposing "audio player" interface in plugin API. The experimental draft may be seen here:
https://github.com/adventuregamestudio/ags/pull/2256
The test game that I quickly made up with two tiny pieces from "Lawrence of Arabia" movie (because I was too lazy searching for any suitable ogv files).
https://www.dropbox.com/s/c8vljxe5m3znji9/test--videoaudio.zip?dl=0
As may be seen in the demo, two videos may be played at the room background by pressing buttons on GUI. They are played with sound, and may play simultaneously. The game keeps working while the videos play (cursor moves, buttons are clickable, character may be walked around).
There's a strange issue where a number of last video frames is not rendered, videos got stuck at some point. From the first glance this is not a desynchronization, but actually frames not advancing or not drawn. They are present in original files.