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

Media viewer video navigation #3848

Merged
merged 4 commits into from
Jul 28, 2020
Merged

Media viewer video navigation #3848

merged 4 commits into from
Jul 28, 2020

Conversation

kulmann
Copy link
Contributor

@kulmann kulmann commented Jul 28, 2020

Description

This PR fixes the navigation between video elements in media viewer. When navigating back and forth between two videos, the shown video stayed the same before. Now it actually switches to the desired video.

As a bonus, this PR fixes animations. There were glitches during switching from one medium to the next/previous, where the loaded medium was shown at the bottom of the screen and then jumped back up after load. That is solved by switching the template to a div tag. Also, the animations need each element to have a unique key, otherwise the animation will not appear at all. That is solved by adding the file-id to the respective key (which was needed for videos anyway).

Related Issue

Motivation and Context

Fixing bugs...

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

kulmann added 3 commits July 28, 2020 14:59
Video and/or image were still visible during navigating to the next or
previous item in mediaviewer. Needed to replace the <template>-tag with
a <div>-tag for that.
@update-docs

This comment has been minimized.

@kulmann kulmann requested a review from LukasHirt July 28, 2020 13:55
@kulmann kulmann self-assigned this Jul 28, 2020
@kulmann kulmann added Status:Needs-Review Needs review from a maintainer Type:Bug Something isn't working bug-solved labels Jul 28, 2020
@kulmann kulmann merged commit 4826ce2 into master Jul 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the media-viewer-video-navigation branch July 28, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer Type:Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mediaviewer doesn't react to navigation for video files
2 participants