BaseAudioPlaybackSession
Shared playback session: prepare → convert once → either legacy playBlocking or ingest ⊥ transport (useTransportPlayback).
seekEpoch (inside TransportController) is independent of the play epoch: seeks abandon in-flight device writes without cancelling an in-flight play() handshake. Stop/dispose still bumps the play epoch and tears transport down.
Play intent is one atomic PlayIntent so "is this generation still current" and "does the user want playback" can never be observed or changed apart. The epoch identifies a play generation (bumped by play/stop/feed restart); pause/resume only flip PlayIntent.wantPlaying, so a paused feed loop parks instead of exiting.
Inheritors
Properties
Currently retained seekable window. Empty if nothing buffered. Defaults to a frozen empty range for unmigrated sessions.
Transport media time, best-effort while playing. Defaults to a frozen Duration.ZERO for unmigrated sessions.
A flow that emits the current state of the playback.
In-tree platforms that return true from useTransportPlayback publish real bufferedRange / transport seek. External subclassers keep the default.
Functions
Legacy pull-loop path. All in-tree platforms use transport playback (useTransportPlayback); this remains only for external subclassers until removal in a future minor (cannot override the internal transport hooks).
Move the transport read cursor.