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 loop toggle to the player contextmenu #3949

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

rigelk
Copy link
Collaborator

@rigelk rigelk commented Apr 11, 2021

Description

This PR replaces the current videojs-contextmenu-ui with an owned and modified version that allows evaluating the value of the context menu content at oncontextmenu event, allowing dynamic context menus in the player.

side note: having our own version of this videojs plugin will come in handy for future work in the contextmenu, for instance adding support for icons.

Related issues

closes #3802

Has this been tested?

  • 👍 yes, light manual tests have been made and are enough

Open any video and toggle the loop feature.

Screenshots

Screenshot_2021-04-11 video_short2
Screenshot_2021-04-11 video_short2(1)

@rigelk rigelk linked an issue Apr 11, 2021 that may be closed by this pull request
@@ -121,7 +121,7 @@
"tslint-config-standard": "^9.0.0",
"typescript": "~4.1.3",
"video.js": "^7",
"videojs-contextmenu-ui": "^5.0.0",
"videojs-contextmenu-pt": "^5.4.1",
Copy link
Owner

Choose a reason for hiding this comment

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

Did you try to make a PR on the origin repository?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Chocobozzz I opened a PR on brightcove's repository

@Chocobozzz Chocobozzz merged commit a472cf0 into Chocobozzz:develop Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video Player - Loop feature Adding Auto-loop on the player
2 participants