startStream

open suspend override fun startStream(url: String)

Connect to a remote 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/app/streamKey or srt://ip:port)

Throws

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