Some YouTube creators have made video-gamebooks during which viewers can make choices that influence the course of the narration.
Some YouTube creators have made video-gamebooks during which viewers are invited to make choices that influence the course of the narration.
This is generally implemented by breaking up the video into short interlinked segments.
This tool automatically generates a visual representation of networks underlying such games by automatically exploring the video maze starting from a root video.
This tool automatically generates visual representations of the networks underlying such games.
[See it live →](https://youtube-maze.delab.re)
## How Does it Work?
The [algorithm](lib/explore.mjs) starts at the first video and explores the links recursively using a breadth-first search approach, keeping track of the links as it goes.
The [Graphviz](http://www.graphviz.org/) library is used to automatically lay out the graph so that as few edges cross as possible.
The [exploration algorithm](lib/explore.mjs) automatically downloads metadata about each video from YouTube and then proceeds to a breadth-first search to generate a graph which is laid out using [Graphviz](http://www.graphviz.org).
Only the links in the end screens and in the in-video cards are considered for the exploration.
Some YouTube creators have made video-gamebooks during which viewers can make choices that influence the course of the narration.
Some YouTube creators have made video-gamebooks during which viewers are invited to make choices that influence the course of the narration.
This is generally implemented by breaking up the video into short interlinked segments.
This tool automatically generates a visual representation of networks underlying such games by automatically exploring the video maze starting from a root video.
This tool automatically generates visual representations of the networks underlying such games.
</p>
<p>
<ahref="https://forge.delab.re/matteo/youtube-maze">See the source code →</a>
</p>
<h2>Some examples</h2>
<ul>
<li><ahref="/mazes/EZGra6O8ClQ">e-penser — “1 avril 2017”</a></li>
The exploration algorithm automatically downloads metadata about each video from YouTube and then proceeds to a breadth-first search to generate a graph which is laid out using <ahref="http://www.graphviz.org">Graphviz</a>.
Only the links in the end screens and in the in-video cards are considered for the exploration.
</p>
<p>
<ahref="https://forge.delab.re/matteo/youtube-maze">See the source code →</a>