Any packets this method reads ahead will be cached and correctly returned when you read packets, but this method can be non-blocking potentially until end of container to get all meta data. Take care when you call it.
After this method is called, other meta data methods like {@link #getDuration()} should work.
If the current thread is interrupted while this blocking method is running the method will return with a negative value. To check if the method exited because of an interruption pass the return value to {@link IError#make(int)} and then check {@link IError#getType()} to see if it is {@link IError.Type#ERROR_INTERRUPTED}.
@return >= 0 on success; <0 on failure.
|
|
|
|