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

ME.js player keyboard support #4151

Merged
merged 1 commit into from
Jun 1, 2020
Merged

ME.js player keyboard support #4151

merged 1 commit into from
Jun 1, 2020

Conversation

Dananji
Copy link
Contributor

@Dananji Dananji commented Jun 1, 2020

This PR includes the following;

  • Add support for jump forward and backwards in ME.js player using keyboard
  • Add buttons in the player for jump forward and backwards
    Screenshot from 2020-06-01 13-48-04
  • Focus relevant keyboard actions on player, when it is on page. For example: when on item page, pressing spacbar will play/pause the player, pressing f key will make the player enter/exit fullscreen, etc.

@Dananji Dananji marked this pull request as ready for review June 1, 2020 16:22
@Dananji Dananji force-pushed the mejs-keyboard-support branch from 53a34ee to 7de5c97 Compare June 1, 2020 17:46
@Dananji Dananji force-pushed the mejs-keyboard-support branch from 7de5c97 to 76a52c4 Compare June 1, 2020 17:49
@@ -26,7 +26,7 @@ Unless required by applicable law or agreed to in writing, software distributed
<!-- Missing title and logo features -->
var mejs4AvalonPlayer = new MEJSPlayer({
currentStreamInfo: <%= section_info.to_json.html_safe %>,
features: ['playpause', 'current', 'progress', 'duration', 'volume', 'tracks', <%= quality_feature.html_safe %>'linkBack', 'fullscreen'],
features: ['playpause', 'skipback', 'jumpforward', 'current', 'progress', 'duration', 'volume', 'tracks', <%= quality_feature.html_safe %>'linkBack', 'fullscreen'],
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we really want this in the embed player since we have limited space within the iframe, but it would be helpful in fullscreen mode and it might have to be in the normal size in order to be in fullscreen. What do other people think?
@joncameron

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like this might be too much and cramp the rail even further. But I'm interested in at least testing it out on Spruce and feel it out. Maybe these could also sit outside of the MEjs features row.

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

Makes things easier that there are already plugins! This looks good! I have one question that isn't a blocker so I'm approving so we can test it out on spruce.

@Dananji Dananji merged commit f344861 into develop Jun 1, 2020
@cjcolvar cjcolvar deleted the mejs-keyboard-support branch June 1, 2020 20:13
@Dananji Dananji mentioned this pull request Oct 14, 2020
22 tasks
@cjcolvar cjcolvar mentioned this pull request Sep 22, 2021
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.

3 participants