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

Customise keystrokes sent ("Default" volume in player) #57

Open
WPettersson opened this issue Jul 27, 2015 · 1 comment
Open

Customise keystrokes sent ("Default" volume in player) #57

WPettersson opened this issue Jul 27, 2015 · 1 comment

Comments

@WPettersson
Copy link

So I see that xdotool (or other for different OSes) is used to "hide" the mouse. I have access to my mouse via my IR keyboard, so I actually got annoyed at that feature. At first I was going to just remove xdotool, but I had a better idea. For me at least, Netflix always starts at 100% volume when I start any new show (but if I've started watching an episode, it remembers my volume). What I did was tweak the script to send 10 "Down" keystrokes (sets volume to 0 no matter what it currently is) and then send 2 "Up" keystrokes to set it to 20%.

I figure the addon could have two (or more) options for what to do when starting Chrome. One is "try to hide the mouse pointer", aka do what it does now. A second one is "Try to set a default volume", which is send Down+Up strokes. More could be suggested by others.

One thing which needs to be considered is the delay before sending keystrokes. On my system I've done some tests, and 11 seconds works best. I'm thinking that could be another option people could set (with a default of 10? seconds).

I'll try to fix up some options and get a PR ready soon, but for now I wanted to see if other people had other things they wanted done when Netflix starts playing. Note that it has to be something easily doable via keystrokes, and I don't know of an exhaustive list of what keystrokes are available in Netflix.

@PrplHaz4
Copy link

Doesn't look like the web player supports many options - but the idea is definitely interesting, and could lead the way to a better experience across platforms/devices....

https://help.netflix.com/article/en/node/24855?ba=GSButtonClick&q=

Space – Toggle Play/Pause
Enter – Toggle Play/Pause
PgUp – Play
PgDn – Pause
F – Full-screen
Esc – Exit full-screen
Shift+Left arrow – Rewind
Shift+Right arrow – Fast Forward
Up arrow – Volume Up
Down arrow – Volume Down
M – Mute toggle

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

No branches or pull requests

2 participants