public void setDataSource (FileDescriptor fd, long offset, long length)
Since: API Level 1 Sets the data source (FileDescriptor) to use.
The FileDescriptor must be seekable (N.B. a LocalSocket is not seekable).
It is the caller's responsibility to close the file descriptor.
It is safe to do so as soon as this call returns.
Parameters
fd the FileDescriptor for the file you want to play
offset the offset into the file where the data to be played starts, in bytes
length the length in bytes of the data to be played
Throws
IllegalStateException if it is called in an invalid state
IOException
IllegalArgumentException