Skip to main content

## player_play_item

# Function player_play_item

Source

    pub async fn player_play_item(
        player: State<'_, PlayerStateWrapper>,
        session: State<'_, MediaSessionManagerWrapper>,
        db: State<'_, DatabaseWrapper>,
        item: PlayItemRequest,
    ) -> Result<PlayerStatus, String>

Expand description

Play a single media item (audio or video)

Accepts a PlayItemRequest with all optional fields properly defaulted. This avoids Tauri’s Android serialization issues with complex objects.

@req: UR-003 - Play videos @req: UR-004 - Play audio uninterrupted @req: UR-005 - Control media playback (play operation) @req: DR-009 - Audio player UI