Skip to content

Media commands#387

Merged
azfoo merged 14 commits into
devfrom
media-commands
May 20, 2026
Merged

Media commands#387
azfoo merged 14 commits into
devfrom
media-commands

Conversation

@FelipeDefensor

Copy link
Copy Markdown
Collaborator

Also add tests for some of the related behaviour.

@FelipeDefensor FelipeDefensor mentioned this pull request Mar 16, 2026
@azfoo

azfoo commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

@FelipeDefensor is this ready for review?

@FelipeDefensor

Copy link
Copy Markdown
Collaborator Author

No, this is still in progress.

@FelipeDefensor

Copy link
Copy Markdown
Collaborator Author

I don't intend to include this in v0.6.0, by the way.

@FelipeDefensor FelipeDefensor added this to the v0.6.1 milestone Mar 18, 2026
Base automatically changed from refactor-timeline-requests to dev March 20, 2026 12:28
`on_drag_end` posted `Post.PLAYER_SEEK`, which has no listeners, so
dragging the trough updated only the visual playback lines (via
SLIDER_DRAG) but never moved the underlying media position. As a
result the toolbar time stayed put. Route the seek through
`commands.execute("media.seek", ...)` like the click handler does.

Also revert the unrelated TimelineScene.set_height playback-line tweak
from e40e834: the playback-line "disappearance" reported earlier was
actually this slider bug (the line jumped to MEDIA_CURRENT_TIME, which
never moved), not a height-driven clipping issue.
@FelipeDefensor FelipeDefensor marked this pull request as ready for review May 6, 2026 14:49
@FelipeDefensor FelipeDefensor requested a review from azfoo May 6, 2026 14:49
@FelipeDefensor

Copy link
Copy Markdown
Collaborator Author

Range timelines (#501) depend on this.

@FelipeDefensor FelipeDefensor modified the milestones: v0.6.1, 0.6.2 May 7, 2026
Comment thread tilia/media/player/base.py Outdated
Comment on lines +196 to +197
def on_seek(self, time: float, if_playing: bool = True) -> None:
if not if_playing and self.is_playing:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if_playing -> seek_if_playing

@azfoo azfoo merged commit 9d2c9b1 into dev May 20, 2026
@azfoo azfoo deleted the media-commands branch May 20, 2026 17:49
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.

2 participants