This demo showcases a streaming pipeline that starts from a MOQ publisher, the moqtail relay, and an AI service that generates an event timeline based on the incoming data.
This demo uses MOQ Draft 11, you may use commit fd691b4
of MOQtail as the relay.
The hosted demo at https://ibc25.moqtail.dev uses an AI service to generate the event data. You may mock this data by running a REST API server at http://localhost:8000
that responds to GET /events/in-range
requests with JSON data in the following format:
GET /events/in-range?start_pts=10000&end_pts=100000
{
"events": [
{
"start_pts": 90000, // in video timebase (90kHz)
"duration": 5.0, // in seconds
},
...
]
}
The parsing of this data is located in moqtail-pub/src/client.rs#L266
. Entirety of the event object will be sent as metadata
to the client. Description of that data along with a parser is located in moqtail-timeline/src/types.ts#L30