Skip to main content

PlayerControls

Function PlayerControls 

Source
pub fn PlayerControls(props: PlayerControlsProps) -> impl IntoView
Expand description

§Optional Props

  • state: PlayState
    • Play/pause state — drives the glyph and aria-label of the toggle.
  • position: f32
    • Scrub position as 0.0..=1.0.
  • duration_seconds: f32
    • Total duration in seconds (used for the right-hand label).
  • on_toggle: impl Into<Callback<()>>
    • Optional click handler for the play/pause toggle. Pure-presentation stories leave this None (default); the recorder shell (app-ui) passes a callback that invokes the Tauri player_play / player_pause commands.