public boolean hasCacheReachedEndOfStream() {
        for (MediaCodecDecoder decoder : mDecoders) {
            if(!decoder.hasCacheReachedEndOfStream()) {
                return false;
            }
        }
        return true;
    }
Returns true only if all decoders have reached the end of stream.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/Decoders.java