Stream Bag File for Playback
GET/api/v1/bags/stream
Stream a single .bag file with HTTP Range support for media players like Lichtblick / Foxglove. Supports seeking and partial content delivery (206 Partial Content).
Request
Query Parameters
file stringrequired
Possible values: non-empty
Relative path of the .bag file under BAGS_FS to stream.
Responses
- 200
- 206
- 400
- 403
- 404
- 500
Full bag file stream
- application/octet-stream
- Schema
Schema
string
Partial bag file stream (HTTP Range)
- application/octet-stream
- Schema
Schema
string
Bad request — invalid path or extension
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Forbidden — files under trash/ require the developer role
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Requested bag file not found
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Loading...