Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b3546e6 authored by Android Code Review's avatar Android Code Review
Browse files

Merge change 10370

* changes:
  Documentation: Clarify that a FileDescriptor must be seekable
parents caee62b5 6ab180aa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -644,7 +644,8 @@ public class MediaPlayer
    }

    /**
     * Sets the data source (FileDescriptor) to use.  It is the caller's responsibility
     * 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.
     *
     * @param fd the FileDescriptor for the file you want to play