v1

latestOpenAPI 3.1.0MIT OR Apache-2.02026-07-17107151343.7 KB
media_player

Get the current state of a media player block.

get/api/flows/{flow_id}/blocks/{block_id}/player/state

Path parameters

flow_idstring required

Flow ID (UUID)

block_idstring required

Block ID

Response

Player state

current_filestring nullable

Current file path/URI

current_file_indexinteger required

Current file index (0-based)

duration_nsinteger required

Total duration in nanoseconds

loop_playlistboolean required

Whether playlist loops

playliststring[] required

Full playlist

position_nsinteger required

Current position in nanoseconds

state'playing' | 'paused' | 'stopped' required

Playback state of a media player.

total_filesinteger required

Total number of files in playlist