DropGroups or DropNextGroups) but may still be available in relay or cache nodes. This allows subscribers to recover recently dropped data and maintain playback continuity.
Fetch a Group
To fetch a specific group, use theSession.Fetch method with a moqt.FetchRequest:
moqt.FetchRequest
Context and Cancellation
TheFetchRequest supports context-based cancellation. When the context is cancelled, the fetch stream is automatically cancelled:
Handle Fetch Requests (Server Side)
To serve fetch requests, implement theFetchHandler interface and configure it on the server or dialer:
GroupWriter to write frames and a FetchRequest describing what the client is requesting.
Using FetchHandlerFunc
For simple handlers, use the convenience type FetchHandlerFunc:
Configuring FetchHandler
On a Server (native QUIC):Error Handling
Fetch operations may returnmoqt.FetchError or moqt.SessionError. Use type assertions for specific handling:
FetchErrorCode values.