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

Add Previous and Next Buttons to navigate between Canvases #176

Closed
5 tasks done
joncameron opened this issue May 17, 2023 · 1 comment · Fixed by #188
Closed
5 tasks done

Add Previous and Next Buttons to navigate between Canvases #176

joncameron opened this issue May 17, 2023 · 1 comment · Fixed by #188
Assignees

Comments

@joncameron
Copy link
Contributor

joncameron commented May 17, 2023

Description

When there are multiple canvases in a manifest, Ramp should allow for navigation between them via controls on the player's toolbar. With back and next buttons available when there is more than one file, users can navigate more quickly. VideoJS appears to have an icon for this under "previous-item".

Definition of Done

  • When more than one canvas/file is present in a manifest, "back" and "next" buttons appear next to the Play button
  • Selecting the back button will load the preceding canvas media into the player
  • Selecting the next button will load the following canvas media into the player
  • Selecting Back on the first section will restart the section from the beginning
  • Selecting Next on the last section will have no effect

Mockup

Screenshot 2023-05-17 at 2.50.56 PM.jpg

@elynema
Copy link

elynema commented May 25, 2023

Used video.js to create custom components to previous and next buttons. If only a single canvas, just the play button. If more than one canvas, instantiate the previous and next buttons.

On first canvas, hover over previous button says "Replay". On second or later canvas, hover over previous button says "Next"

@elynema elynema changed the title Add Previous and Next Buttons Add Previous and Next Buttons to navigate between Canvases May 26, 2023
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 a pull request may close this issue.

3 participants