Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8165fd7f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "MoviePlayer: prevent resume dialog for live streaming"

parents 49c3de4b a61dd046
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -300,12 +300,19 @@ public class MoviePlayer implements
        } else {
            mTState = TState.PLAYING;
            mFirstBePlayed = true;
            String mUri = mMovieItem.getUri().toString();
            boolean isLive = mUri.startsWith("rtsp://") && (mUri.contains(".sdp")
                    || mUri.contains(".smil"));
            if (!isLive) {
                final BookmarkerInfo bookmark = mBookmarker.getBookmark(mMovieItem.getUri());
                if (bookmark != null) {
                    showResumeDialog(movieActivity, bookmark);
                } else {
                    doStartVideo(false, 0, 0);
                }
            } else {
                doStartVideo(false, 0, 0);
            }
        }
        mScreenModeExt.setScreenMode();
    }