SrtStreamSessionFactory

Creates MPEG-TS publishing and playback sessions for srt URIs.

Register with StreamSession.Builder.registerFactory before building a session. Pass the complete SRT URI, including socket options such as mode=listener or streamid. No separate stream name is appended. Transport mode is independent of StreamSession.Mode: callers and listeners can both publish or play. Closing stops media and transport; the same session may reconnect. Session-owned monitoring ends on close or failure. Cancellation of connect closes its attempt and propagates cancellation. Observe the returned stream's failure for media errors.

Properties

Link copied to clipboard
open override val protocols: List<String>

URI schemes handled by this factory.

Functions

Link copied to clipboard
open override fun create(application: Context, uri: Uri, mode: StreamSession.Mode): StreamSession

Creates an idle session without network I/O.