private void updateBufferPercentage(int percent) {
            long currentTime = SystemClock.elapsedRealtime();

            // Throttle the MEDIA_BUFFERING_UPDATE frequency to at most once per second
            // and only issue updates when the percentage actually changes.
            if (currentTime - mLastBufferingUpdateTime > 1000 && percent != mBufferPercentage) {
                mLastBufferingUpdateTime = currentTime;
                // Clamp the reported percent to 100% to avoid percentages above 100, which can
                // happen due to the not exactly precise buffer level calculation
                mEventHandler.sendMessage(mEventHandler.obtainMessage(MEDIA_BUFFERING_UPDATE,
                        Math.min(percent, 100), 0));
            }

            // Update the buffer percentage at every call so a user of the library can decide
            // to update the buffer fill state more often than the buffering update handler is
            // called by calling getBufferPercentage at his desired frequency.
            mBufferPercentage = percent;
        }
Removes a cue added by {@link #addCue(int, Object)} from the playback timeline.

@param cue the cue to remove
@return true if removal was successful, false if the cue wasn't cued on the timeline,
i.e. it has already been removed before
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaPlayer.java