startStream

abstract suspend fun startStream(url: String)

Connect to a RTMP server and start stream. Same as calling connect, then startStream. To avoid creating an unresponsive UI, do not call on main thread.

Parameters

url

server url (syntax: rtmp://server/streamKey)

Throws

if connection has failed or configuration has failed or startStream has failed too.