Skip to main content

## Module playback_mode

Source

## Structs§

PlatformRemoteVolumeControl 🔒
  Production hook: forwards to the Android JNI bridge; no-op elsewhere.
PlaybackModeManager
  Manages playback mode transfers between local and remote sessions

## Enums§

PlaybackMode
  Playback mode - local device, remote session, or idle

## Constants§

DEFAULT_REMOTE_VOLUME 🔒
  Volume level (0-100) the remote volume slider starts at. The real level is corrected by the session poller once the remote session reports its volume.
RESUME_THRESHOLD_SECONDS 🔒
  Below this many seconds we treat the position as “at the start” and don’t send a resume position, so a fresh track casts from 0 rather than ~0.
TICKS_PER_SECOND 🔒
  Number of Jellyfin ticks per second (100ns units).

## Traits§

RemoteVolumeControl
  Platform hook for attaching/detaching the OS remote-volume control.

## Functions§

start_position_ticks_from_seconds 🔒
  Convert a live playback position (seconds) into the `StartPositionTicks` to hand to a remote session, or `None` if we’re effectively at the start.