public boolean hasCacheReachedEndOfStream() {
        return mExtractor.hasCacheReachedEndOfStream();
    }
Returns true iff we are caching data and the cache has reached the
end of the data stream.
@see MediaExtractor#hasCacheReachedEndOfStream()
@return true if caching and end of stream has been reached, else false
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecDecoder.java