[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - Keyboard media controls only work when SMPlayer is focused

This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Keyboard media controls only work when SMPlayer is focused

Problems, bugs, suggestions... anything related to SMPlayer.

Keyboard media controls only work when SMPlayer is focused

Postby Cavi Mike » Sat Jan 30, 2010 9:49 pm

Can they be made to work at all times?
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Keyboard media controls only work when SMPlayer is focused

Postby rvm » Sun Jan 31, 2010 5:10 am

If the smplayer window is not focused, it doesn't receive key events.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Keyboard media controls only work when SMPlayer is focused

Postby Cavi Mike » Sun Jan 31, 2010 5:57 am

Yes, that's why I asked if there was a way to change it. Like WinAmp or Windows Media Player where it can receive them at all times.
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Keyboard media controls only work when SMPlayer is focused

Postby rvm » Sun Jan 31, 2010 6:22 am

I don't know how those programs do it.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Keyboard media controls only work when SMPlayer is focused

Postby MacTheKnife » Sun Jan 31, 2010 9:31 pm

In a similar vein, there's a bunch of mouse key functions that only work when the pointer is in the video frame and a video is playing, but they don't work when playing audio only files.

For example, I have the "forward" and "backward" buttons on my mouse mapped to "skip medium" and "skip short", but they only work for video files and not for audio files.

Would it be possible to make the video frame still accept mouse clicks when playing audio only files so that the mouse keys will work in that case too?
MacTheKnife
 
Posts: 27
Joined: Thu Jan 14, 2010 8:58 pm

Re: Keyboard media controls only work when SMPlayer is focused

Postby Cavi Mike » Mon Feb 01, 2010 12:09 am

I found a guy who did it for iTunes:
http://jonathangiles.net/blog/?p=258

The source code and whatnot is here:
http://jonathangiles.net/blog/wp-conten ... stener.zip

Any way you could adapt it?
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Keyboard media controls only work when SMPlayer is focused

Postby rvm » Mon Feb 01, 2010 12:59 am

rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Keyboard media controls only work when SMPlayer is focused

Postby Cavi Mike » Mon Feb 01, 2010 6:15 am

They're only listening if they're running. I don't know about you but I've never tried to watch a movie on one player and listen to music on another at the same time. But I do like to surf the internet while I have my music videos playing on my TV.
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Keyboard media controls only work when SMPlayer is focused

Postby Cavi Mike » Mon Feb 01, 2010 11:47 pm

How would I go about modifying this? Do I need special software?
pearls ain't free
User avatar
Cavi Mike
 
Posts: 14
Joined: Thu Jan 21, 2010 1:11 pm
Location: Rochester, NY US

Re: Keyboard media controls only work when SMPlayer is focused

Postby rvm » Tue Feb 02, 2010 12:08 am

I guess you'd need the Java SDK.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España


Return to General

Who is online

Users browsing this forum: No registered users and 20 guests