replay

fun replay(@NonNull source: FileReplay.Source, @NonNull observer: Ref.Observer<FileReplay>): Ref<FileReplay>

Creates a new replay stream for some local media file.

Every call to this method creates a new replay stream instance for the given local file, that must be disposed by closing the returned reference once that stream is not needed.

Closing the returned reference automatically stops the referenced replay stream.

Return

a reference onto a new replay stream for the given file

Parameters

source

identifies local source stream

observer

observer notified when the stream state changes