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

Commit 46aa54b2 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Ricardo Cerqueira
Browse files

frameworks/base - suspend implementation for video playback

- suspend( ) API is not supported in MediaPlayer.
- On suspend, save current position and seek to the saved
  position when playback is resumed.

Change-Id: I62f79a2984d57841bdbdbe918a38d01d623c0a2b
CRs-Fixed: 281944
parent 9c6ce6ce
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -574,6 +574,8 @@ public class VideoView extends SurfaceView implements MediaPlayerControl {
    }

    public void suspend() {
        mSeekWhenPrepared = getCurrentPosition( );
        Log.v(TAG, "suspend( ) - will resume at " + mSeekWhenPrepared);
        release(false);
    }