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

Commit 6ab180aa authored by Kenny Root's avatar Kenny Root Committed by Jean-Baptiste Queru
Browse files

Documentation: Clarify that a FileDescriptor must be seekable

In MediaPlayer, methods with an offset specified must be passed a
FileDescriptor that is seekable. This change notes that in the
JavaDoc.
parent d5d4e63e
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