@Override protected void onResume() { super.onResume(); if (mMediaController != null) { // mMediaController.setMdragging(false); mMediaController.hide(); } if (mSmilDoc != null) { ((EventTarget) mSmilDoc) .addEventListener( SmilDocumentImpl.SMIL_DOCUMENT_END_EVENT, SlideshowActivity.this, false); } /// M: Code analyze 002, fix bug ALPS00111374, whether need resume @{ if (!bNeedResume) { mRotate = false; return; } /// @} if (null == mSmilPlayer) { mSmilPlayer = SmilPlayer.getPlayer(); } if (null != mSmilPlayer) { if (!isFinishing()) { if (mSmilPlayer.isPausedState()) { if (mRotate) { // if need resume the player, set the state playing. mSmilPlayer.setStateStart(); } else { mSmilPlayer.start(); } } } } mRotate = false; }
public void start() { mPlayer.start(); mCachedIsPlaying = true; }