- path
- the path of the file, or the http/rtsp URL of the stream you want to play
Type Reason Java.Lang.IllegalStateException if it is called in an invalid state When path refers to a local file, the file may actually be opened by a process other than the calling application. This implies that the pathname should be an absolute path (as any other process runs with unspecified current working directory), and that the pathname should reference a world-readable file. As an alternative, the application could first open the file for reading, and then use the file descriptor form MediaPlayer.SetDataSource(Java.IO.FileDescriptor). Java.IO.IOException Java.Lang.IllegalArgumentException Java.Lang.SecurityException
Sets the data source (file-path or http/rtsp URL) to use.