Skip to content

Add video player features - #791

Merged
thestinger merged 12 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/760-video-player-features
Oct 27, 2026
Merged

thestinger merged 12 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/760-video-player-features

Conversation

@m4pl

@m4pl m4pl commented Oct 26, 2026 •

Copy link
Copy Markdown

Updated the video player and added some optimizations.

Closes #760

@m4pl
m4pl requested review from RankoR and sdsantos October 26, 2026 21:09
@m4pl
m4pl marked this pull request as ready for review October 26, 2026 21:09
this.stateHolder = stateHolder
}

override suspend fun trackPlayback() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Media refresh can restart playback after the gallery stops. If you open a video, switch to the system gallery and delete a video, ScreenStopped will pause playback, but ViewModel continues observing media changes. The next video occupies the settled index, triggering play, while gallery is stopped. Playback should be gated on screen lifecycle state.

}

private fun play() {
setSeek(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With looping disabled, pause, seek to the end and press play. The controller converts the held end position into Seek.Landing(end), while VideoPlaybackImpl.play() rewinds the ended player to zero. The displayed time and slider keep waiting for the old end position instead of following replay.

@m4pl
m4pl requested a review from RankoR October 27, 2026 09:57
@thestinger
thestinger merged commit f643961 into GrapheneOS:compose-prototype Oct 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants