Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync AV player state with tour state #817

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

lentinj
Copy link
Collaborator

@lentinj lentinj commented Apr 23, 2024

  • When a player is paused (but not ended!), pause the tour
  • When a player is resumed, but the tour is paused, resume the tour
  • When a tour is paused, pause the video

Fixes #782

lentinj added 2 commits April 23, 2024 15:58
Avoid event spam by checking the status is different first.
* When a player is paused (but not ended!), pause the tour
* When a player is resumed, but the tour is paused, resume the tour
* When a tour is paused, pause the video

To achieve the final point, add an observer for the overall tour state
to tourstop_oberver()s. We have to ignore this in UIEvents otherwise we
re-open the mobile view on pausing.
@lentinj lentinj merged commit 2ee6900 into main Apr 23, 2024
1 check passed
@lentinj lentinj deleted the issue-782-tour-video-pause branch April 23, 2024 16:15
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.

Tours: pause video when tree is clicked
1 participant