Video Playback Part 2


Lots to report from the development desk!  Video playback is finished (for the moment), navigation is very close, UI is pretty much there, art is locked-in...

Video playback is only a piece of the interactive system in anfractuous, and it is integrated with the UI, audio playback, and various animations / graphics in the world.  Interactive video is unique in this way: the moving image is part of a touchable, clickable, dynamic real-time space.  The rest of the system needs data from the stream, and the stream needs the state of the system.  And eloquence is crucial for a viewer to play, use, and understand the experience.  For instance:

Viewer clicks on a lit panel, we zoom into it, the UI 'zoom-out' button appears (and activates), viewer clicks it, we zoom out, video pauses, button deactivates and disappears, viewer clicks on same panel and it continues playing, etc.  As panels / scenes are visited, other scenes light up an become available to visit.


This seems strait-forward, and for the most part it is, but there are many conditions and timers at play to make the experience seamless...


Okay, okay, the code needs a refactor or two, but this is to illustrate the complexity of a seemingly simple video mechanic:  the videos require specific paths depending on platform, we need to fetch various data such as video duration and loop point, if the viewer (camera) is zoomed and positioned and not moving, play the video and fade in the sound.  And disable all buttons.  Also, tell the system that the scene has been visited.  If the camera / viewer leaves the position or zooms-out, fade the audio out and pause the video, but wait for the fade to finish before pausing the audio.  Then fade in the ambient sound for the main view, enable buttons and so on....

We also decided to implement a replay button that when clicked, unlocks the video, fades to black then back to start of video.  Initially, we also had a pause button available, but decided it cluttered the screen and gave too much playback control to the audience.  This is a fine line.  We want the viewer to be able to navigate, play, etc., but did not want to create a VCR.  So the pausing functionality is combined with the zoom-out which makes it more playable.

Files

Anfractuous_Android.apk 265 MB
Jun 12, 2023

Get anfractuous

Leave a comment

Log in with itch.io to leave a comment.