MediaStorePlayerSettings.onEof property
Callback to be notified when playback ends: at the end of the last cut list entry (one that follows the live edge does not end while the recording goes on), or at once when there is nothing to play. The player then closes.
Signature:
onEof?: () => void;