/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); mInBuffering = false; mNeedResume = false; }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); mNeedResume = false; //Log.i("MiuiVideo: pause player"); _pause(); }
/** * Starts or resumes playback. If playback had previously been paused, * playback will continue from where it was paused. If playback had been * stopped, or never started before, playback will start at the beginning. * * @throws IllegalStateException if it is called in an invalid state */ public void start() throws IllegalStateException { stayAwake(true); if (mInBuffering) { //Log.i("MiuiVideo: now is in buffering, and will start after buffering"); mNeedResume = true; } else { //Log.i("MiuiVideo: start player"); _start(); } }
/** * Resets the MediaPlayer to its uninitialized state. After calling this * method, you will have to initialize it again by setting the data source and * calling prepare(). */ public void reset() { stayAwake(false); _reset(); if (mEventHandler != null) mEventHandler.removeCallbacksAndMessages(null); closeFD(); mInBuffering = false; mNeedResume = false; }
/** * Releases resources associated with this MediaPlayer object. It is * considered good practice to call this method when you're done using the * MediaPlayer. */ public void release() { stayAwake(false); updateSurfaceScreenOn(); mOnPreparedListener = null; mOnBufferingUpdateListener = null; mOnCompletionListener = null; mOnSeekCompleteListener = null; mOnErrorListener = null; mOnInfoListener = null; mOnVideoSizeChangedListener = null; mOnCachingUpdateListener = null; mOnHWRenderFailedListener = null; if (mEventHandler != null) mEventHandler.release(); //mEventHandler = null; _release(); closeFD(); mInBuffering = false; mNeedResume = false; }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); mNeedResume = false; //Log.i("MiuiVideo: pause player"); _pause(); }
/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); mNeedResume = false; //Log.i("MiuiVideo: pause player"); _pause(); }
/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); mInBuffering = false; mNeedResume = false; }
/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); mInBuffering = false; mNeedResume = false; }
/** * Starts or resumes playback. If playback had previously been paused, * playback will continue from where it was paused. If playback had been * stopped, or never started before, playback will start at the beginning. * * @throws IllegalStateException if it is called in an invalid state */ public void start() throws IllegalStateException { stayAwake(true); _start(); }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); _pause(); }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); mNeedResume = false; //Log.i("MiuiVideo: pause player"); _pause(); }
/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); mInBuffering = false; mNeedResume = false; }
/** * Pauses playback. Call start() to resume. * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void pause() throws IllegalStateException { stayAwake(false); mNeedResume = false; //Log.i("MiuiVideo: pause player"); _pause(); }
/** * The same as {@link #pause()} * * @throws IllegalStateException if the internal player engine has not been initialized. */ public void stop() throws IllegalStateException { stayAwake(false); _stop(); mInBuffering = false; mNeedResume = false; }
/** * Resets the MediaPlayer to its uninitialized state. After calling this * method, you will have to initialize it again by setting the data source and * calling prepare(). */ public void reset() { stayAwake(false); _reset(); mEventHandler.removeCallbacksAndMessages(null); closeFD(); }
/** * Resets the MediaPlayer to its uninitialized state. After calling this * method, you will have to initialize it again by setting the data source and * calling prepare(). */ public void reset() { stayAwake(false); _reset(); if (mEventHandler != null) mEventHandler.removeCallbacksAndMessages(null); closeFD(); mInBuffering = false; mNeedResume = false; }
/** * Resets the MediaPlayer to its uninitialized state. After calling this * method, you will have to initialize it again by setting the data source and * calling prepare(). */ public void reset() { stayAwake(false); _reset(); if (mEventHandler != null) mEventHandler.removeCallbacksAndMessages(null); closeFD(); mInBuffering = false; mNeedResume = false; }
/** * Resets the MediaPlayer to its uninitialized state. After calling this * method, you will have to initialize it again by setting the data source and * calling prepare(). */ public void reset() { stayAwake(false); _reset(); if (mEventHandler != null) mEventHandler.removeCallbacksAndMessages(null); closeFD(); mInBuffering = false; mNeedResume = false; }