StreamSession

interface StreamSession

StreamSession is a session for live streaming.

Streaming with com.haishinkit.rtmp.RtmpConnection is difficult to use because it requires many idioms. This is a helper class specialized for a one-connection, one-stream setup.

Types

Link copied to clipboard
class Builder(context: Context, uri: Uri)

Helper class for building new StreamSession.

Link copied to clipboard

Properties

Link copied to clipboard
abstract val isConnected: Boolean

This instance connected to server(true) or not(false).

Link copied to clipboard
abstract val stream: Stream

The stream instance.

Functions

Link copied to clipboard
abstract suspend fun close(): Result<Unit>

Closes the connection from the server.

Link copied to clipboard
abstract suspend fun connect(method: StreamSession.Method): Result<Unit>

Creates a connection to an application on server.