Overview
Playback commands handle launching external players (MPV, VLC) and managing playback sessions with progress tracking.Commands
play_media
Launch MPV player with a media item, including cloud streaming support.Database ID of the media item to play
Whether to resume from saved position
Cloud Streaming: For cloud files, this command:
- Fetches a temporary streaming URL from Google Drive
- Passes the URL and OAuth token to MPV via
--http-header-fields - Optionally enables disk caching for smoother playback
MPV is launched with IPC (named pipe on Windows) for real-time progress tracking. Progress is saved every 2 seconds and on quit.
play_with_vlc
Launch VLC player with a local media file.Media item ID
Whether to start at saved position
update_resume_position
See Library Management - update_resume_positionget_active_mpv_sessions
Get all currently running MPV playback sessions.Array of active MPV sessions
kill_mpv_session
Terminate a specific MPV playback session.Not directly exposed as a Tauri command. Use OS process management or wait for natural termination.
mpv_seek
Seek to a specific position in MPV playback.Direct MPV IPC control is handled internally. For Watch Together sync, use
wt_send_mpv_command instead.mpv_set_pause
Pause or resume MPV playback.Controlled via MPV’s IPC interface. See Watch Together commands for synchronized playback control.
get_stream_info
Get streaming URL for built-in player.Media item to stream