setDataSource

abstract fun setDataSource(path: String)

Sets the data source (file-path or http/rtsp URL) to use.

Parameters

path

the path of the file, or the http/rtsp URL of the stream you want to play

Throws

if it is called in an invalid state