Jump to content


Photo

ET loses focus when using external player


  • Please log in to reply
57 replies to this topic

#41 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 10955 posts
  • Local time: 09:22 PM

Posted 16 December 2018 - 03:27 PM

I think this may have something to do with Theater making an independent taskbar icon when it starts. I'll explain. I have one TV that is connected to an HTPC. It's only used for that one purpose. I leave Theater open all the time. I have the Theater taskbar launch icon in position 1. I have one other icon in position 2. When I launch Theater, another Theater icon appears in position 3. Sometimes I find Theater has lost focus, and I use a Harmony remote. I've mapped the green button to launch Theater by using position 1. What I discovered is that if I press that button when Theater is open, it loses focus. So I mapped another button to position 3, where the second Theater icon is. Pressing that, brings the focus back. The two icon issue has been a problem for a long time. No other software I use, exhibits the same behavior. So I think this is part of, if not the whole problem. I will add that I am not using an external player, I think that's a red herring. 



#42 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 16 December 2018 - 10:44 PM

The app is using two windows,yes, one for the UI, and one for the video player, and this does make things a little more complex. I still have not been able to reproduce this.



#43 shpitz461 OFFLINE  

shpitz461

    Advanced Member

  • Members
  • 169 posts
  • Local time: 12:22 AM
  • LocationTucson, AZ

Posted 17 December 2018 - 08:01 AM

For me, the issue went away, on latest ET, the cursor appears upon launch, but after 2 seconds or so it disappears on its own.

Once it's gone, it doesn't come back as long as I use a remote exclusively.

Using internal player (friendly reminder, 3D playback still frozen after 26 minutes... :P).

ET is the only app I have running, I never turn off/sleep the htpc, but when I close the TV the remote closes the focused app automatically (in shutdown sequence I added alt+F4).



#44 Mael OFFLINE  

Mael

    Member

  • Members
  • 22 posts
  • Local time: 09:22 PM

Posted 17 December 2018 - 04:52 PM

I'm using 3.6.0.76 with MPC-HC and this is a problem for me as well.



#45 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 19 December 2018 - 02:46 AM

I'm using 3.6.0.76 with MPC-HC and this is a problem for me as well.

 

Is your primary input method a mouse or remote?



#46 Mael OFFLINE  

Mael

    Member

  • Members
  • 22 posts
  • Local time: 09:22 PM

Posted 19 December 2018 - 11:22 AM

Is your primary input method a mouse or remote?

 

Remote



#47 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 19 December 2018 - 02:24 PM

Do you have any other software running when trying this?



#48 Mael OFFLINE  

Mael

    Member

  • Members
  • 22 posts
  • Local time: 09:22 PM

Posted 19 December 2018 - 03:31 PM

Do you have any other software running when trying this?

 

On a windows 10 machine there's always other software running, but I don't have any other applications open other than Emby Theater.



#49 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 21 December 2018 - 12:37 PM

Can you please try this version:

https://www.dropbox....heater.zip?dl=0

 

Just unzip and run it portable. Thanks.



#50 raymondjpg OFFLINE  

raymondjpg

    Advanced Member

  • Members
  • 87 posts
  • Local time: 04:22 AM

Posted 20 March 2019 - 08:58 AM

Can you please try this version:

https://www.dropbox....heater.zip?dl=0

 

Just unzip and run it portable. Thanks.

 

Not sure what happened with this download - maybe it was pulled - but I'm afraid I have to resurrect this thread.

 

I have now encountered the issue with a fresh install of Windows 10 1809, using PotPlayer and/or MPC-BE as an external player in Emby Theater. Strange, as I don't seen it in two other installations of Emby Theater that I am running on Windows10 machines that have been progressively updated from earlier feature builds.

 

I have tried overwriting the shell.js file in the Emby installation, and disabled autohiding the taskbar. Neither has fixed the issue. Like others, I find that after exiting the external media players Theater loses focus and becomes unresponsive to both a remote control and keyboard. A mouse click on the desktop brings Theater back into focus until next time a video is played then exited.

 

I have tried various combinations of compatibility mode, particularly disable full screen optimizations, and starting Theater in either windowed or maximised mode. Nothing changes the situation.Theater still loses focus after a video is played.

 

It has been said that the issue cannot be reproduced with VLC player. I suspect that if the issue is not there with VLC it may not be apparent with other external players. Doofus seemed to think that it might be completely unrelated to use of an external player, that it may be a red herring.

 

Whatever the cause there are enough people affected that it is worthy of further investigation. Perhaps with a fresh install of Windows 10.
 



#51 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 20 March 2019 - 11:41 AM

Thanks for the info.



#52 raymondjpg OFFLINE  

raymondjpg

    Advanced Member

  • Members
  • 87 posts
  • Local time: 04:22 AM

Posted 20 March 2019 - 07:23 PM

Whatever the cause there are enough people affected that it is worthy of further investigation. Perhaps with a fresh install of Windows 10.
 

 

This appears to have resolved the issue for me: Change the value in HKEY_CURRENT_USER\Control Panel\Desktop\ForegroundLockTimeout from 30d40 (hexadecimel) to 10 (decimel).

 

There are a number of references on the web suggesting change the value to 0 (hexadecimel) but that did not work for me.

 

I checked with an installation of Theater in one of my Windows 7 pcs that did not have this issue of loss of focus, and the registry value there is 30d40 (hexadecimel).

 

It appears that Theater was unable to cope with my fresh install of Windows 10 where the registry value looks by default to be 30d40 (hexadecimel). When I have some time I will check with my other Windows 10 HTPCs to see if the registry value is anything other than 30d40 (hexadecimel). I doubt it as I have never had occasion to modify this value before.

 

As it was necessary to modify the value on my fresh install of Windows 10, there could well be some issue other than ForegroundLockTimeout at play. I hope that other applications do not fall foul of my registry tweak, but so far I haven't seen any evidence of that.

 

I don't know if the registry fix would work without replacing shell.js first. That could be checked with a fresh installation of Theater.


Edited by raymondjpg, 20 March 2019 - 07:32 PM.


#53 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 21 March 2019 - 12:05 AM

Can you try with this latest test version:

https://www.dropbox....heater.zip?dl=0

 

It simplifies window management in the app which more than likely will  help with this. Thanks.



#54 raymondjpg OFFLINE  

raymondjpg

    Advanced Member

  • Members
  • 87 posts
  • Local time: 04:22 AM

Posted 21 March 2019 - 01:07 AM

Can you try with this latest test version:

https://www.dropbox....heater.zip?dl=0

 

It simplifies window management in the app which more than likely will  help with this. Thanks.

 

Yes. This standalone version appears to retain focus even when the (apparent default) value of 30d40 (hexadecimel) is set for HKEY_CURRENT_USER\Control Panel\Desktop\ForegroundLockTimeout.

 

As I am more in favour of applications being modified to cope with the idiosyncracies of operating systems than vice versa I'll stick with this version until a production version that can cope with the loss of focus becomes available.



#55 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 21 March 2019 - 01:09 AM

Thanks for the feedback. 



#56 Mael OFFLINE  

Mael

    Member

  • Members
  • 22 posts
  • Local time: 09:22 PM

Posted 21 March 2019 - 02:53 PM

@Luke Can you please let us know when this fix will make it into the official release stream?



#57 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124094 posts
  • Local time: 12:22 AM

Posted 21 March 2019 - 02:58 PM

Yes, please stay tuned to the blog for the release announcement. Thanks.


  • Mael likes this

#58 raymondjpg OFFLINE  

raymondjpg

    Advanced Member

  • Members
  • 87 posts
  • Local time: 04:22 AM

Posted 25 March 2019 - 07:54 AM

It appears that Theater was unable to cope with my fresh install of Windows 10 where the registry value looks by default to be 30d40 (hexadecimel). When I have some time I will check with my other Windows 10 HTPCs to see if the registry value is anything other than 30d40 (hexadecimel). I doubt it as I have never had occasion to modify this value before.

 

I encountered the loss of focus on another HTPC running Windows 10 1809, this time upgraded recently from Windows 7. Previously it appeared to be working perfectly well, but there have been some recent quality and/or security updates that look to have triggered the issue.

 

Both HTPCs are running with the same graphics driver. A third HTPC, also running Windows 10 1809 fully patched but with a different graphics driver does not appear to have the same issue.

 

The loss of focus turned out not to be confined to Emby Theater. It was also apparent in the external players that I use. These external players are controlled with an IR remote device that emulates keyboard strokes. The loss of focus with the external players could be overcome by running madVR in Full Screen Exclusive mode.

 

So it appears that the issue in my case may be due to some recent Windows 10 updates, and limited to my HTPCs with a particular GFX graphics driver. Intel hasn't provided any more recent versions of GFX drivers for these HTPCs, but is instead promoting DCH drivers which look to be difficult to go back on once installed. They may resolve the issue of loss of focus, but for the time being I have stayed with the apparently problematic GFX driver and implemented the workaround of changing the value in HKEY_CURRENT_USER\Control Panel\Desktop\ForegroundLockTimeout from 30d40 (hexadecimel) to 10 (decimel). This allows both use of the current production version of Emby Theater and trouble-free use of an IR remote with the external players.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users