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

feat: to navigate through videos by prev and next video button #1456

Closed
wants to merge 2 commits into from

Conversation

Prashant-flick
Copy link
Contributor

@Prashant-flick Prashant-flick commented Oct 8, 2024

PR Features:

  • Added functionality to navigate through videos within a course using previous and next buttons.
  • Automatically plays the next video in the course after the current video ends.

Limitations

  • Navigation to the next course after the last video in the current course is not implemented.
  • Navigation is limited to videos only, excluding notes.
added.next.and.prev.button.mp4

Resolves #1166

  • Open to any suggestions for improvements; please let me know your thoughts in the comments.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@devsargam
Copy link
Collaborator

adding it to things to review

@Prashant-flick
Copy link
Contributor Author

hey @devsargam
your thoughts on this?

@devsargam
Copy link
Collaborator

This is great but I need to review for all edge cases

src/app/layout.tsx Outdated Show resolved Hide resolved
src/components/ContentCard.tsx Outdated Show resolved Hide resolved

const root = createRoot(pipButtonContainer.el());
root.render(<PipButton />);
root.render(<span className="material-symbols-outlined">picture_in_picture_alt</span>);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please revert the PipButton logic?

Copy link
Contributor Author

@Prashant-flick Prashant-flick Oct 23, 2024

Choose a reason for hiding this comment

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

@devsargam
there was some error on prev Pip button logic, and also some error on my Pip Button logic.
i have fixed all the errors, please review it.

@devsargam
Copy link
Collaborator

Sorry this looks really good but considering this pr
ref: #1434

@devsargam devsargam closed this Nov 17, 2024
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.

feature: Add "Next" and "Previous" Buttons for Module Navigation
2 participants