MDAPI_Plus and MediaPortal: MP loses focus
MDAPI_Plus is a DirectShow filter, which can descramble television
Brought to you by:
alexplusplus,
mdapiplus
Hello!
I am using MDAPI_Plus with MediaPortal. Every version of MDAPI_Plus makes MediaPortal lose focus when tuning on an encrypted channel.
Anyone else with this problem, or know how to fix it?
I've gone around it by making a macro that restores focus on MP every 3 seconds but that aint the best solution...
Hello
I'm author of MDAPI_Plus. In which moment it makes MP to lose focus? I'm use MP as well but my TV cards are located on dedicated server.
Hello, sorry for the late reply. I made an autoit script that restores focus to mediaportal, to get around this problem.
When ever mediaportal starts to or stops to record encrypted channel and mdapi + acamd kick in, mediaportal loses focus.
I just started to think about it, maybe it's related to the acamd & mdapi plus tray icons kick in.
I havent tested or even checked if mdapi plus and acamd plugin can be configured so that tray icons dont appear, and if that would fix the problem. Will try that when I get some free time.
Ok I've tested it a bit more now:
- Disabled MDAPI_Plus tray icon. MP still loses focus if recording encrypted channel.
- Disabled ACamD tray icon. MP still loses focus if recording encrypted channel.
- Disabled ACamD logging, still loses focus when MP starts recording encrypted channel.
I have the same issue at the very same moments as described above. Can this be fixed please?
It seems that this issue happen when TVServer is installed in single mode along with MP.
On dedicated server, it's ok.
I've made few changes to prevent MDAPIHost accure the focus, please check attached test build.
Working on my side :)
Great, thank you will give it a try and report back later.
I did some testing with MDAPI_Plus_0_9_0_1620.zip but it didn't fix the focus issue for me. I have a mediaportal 1.12 tv server and client on same machine running windows 10. But everytime I open mediaportal tv it loses focus. When regaining focus it works fine, but after I stop tv again and start it, it loses focus again. Can you please fix this?
First of all recheck please that MDAPIHost.exe file is updated. You can check version via About item of tray menu.
Has TVService ability to interact with desktop?
As a workaround you can try to delete from registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\
MDAPI_Plus value and restart the computer.
You are right, I think it wasn't updated, after I closed tv server and all mediaportal/tv tuner stuff and ran the update again it worked flawless. Thank you!
Today I had the problem again so it seems it's not fixed in 1620. I think I just had luck and selected a non scrambled channel by accident. When checking which app has focus with a tool called focus I got the following log when starting tv and watching a scrambled channel(so mdapi plus is triggered).
3464:C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe | Sun Dec 27 23:08:19 2015
6700:C:\Program Files (x86)\MDAPI_Plus\MDAPIHost.exe | Sun Dec 27 23:08:53 2015
3464:C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe | Sun Dec 27 23:09:05 2015
Seems MDAPIHost.exe still makes mediaportal lose focus on start of watching an scrambled channel. When watching a non scrambled channel(mdapi plus isn't started for this) everything is fine and no focus lose happens. Can you please check again if there is anything you can improve to avoid this behaviour.
I double checked the version number and it shows:
MDAPI_Plus DirectShow filter
COpyright C 2008 - 2011 Alexander Plyas
Version 0.9.0(Build 1620) Beta
The same thing happened when tuning a scrambled channel from mediaportal tv server config -> manual control
Last edit: Christian 2015-12-27
Have you tried to remove registry entry which I've mentioned?
Yes, the entry doesn't exists on my system. Is it broken? As the focus is still lost on when I start watching tv.
If you delete this entry and restart PC, MDAPIHost.exe will be executed in context of TV Server which is service and usually cannot interact with desktop. Could you please try it?
Sorry, I haven't understand your previouse post.
Could you please recheck. After restarting the PC, check task manager if next processes are started TVService.exe and MDAPIHost.exe. If both processes are started terminate please MDAPIHost.exe. Then try to watch scrambled cahhnel.
yes, both services are started after a reboot:
When I kill MDAPI_Plus Host applications and start watching a scrambled channel, focus is fine and not lost. Scrambled channels work also correct and 2 processes of MDAPI_Plus Host Applications are running(started when watching a scrambled channel). Do you know what the problem is with this information provided?
Also after zapping to other scrambled channels or non scrambled channels and switch back to scrambled channels works correct after killing MDAPI_Plus Host first before tuning TV. Focus is never lost.
Seems killing the initial MDAPIHost version which starts with windows fixes the focus lose problem. Can you fix this in the code? Or do I have to disable it manually somehow?
Hello
Yes, I'll make changes in my code. As a workaround you may delete initial MDAPIHost from autostart. It autostarts via registry entry I mentioned, recheck it or just find across the registry string MDAPI_Plus_Master and delete the value, it is a paramter with which initial MDAPIHost process runs.
Hey thank you. I think I've found the place where the value persists in windows 10(not sure if the reason is windows 10). HKEY_LOCAL_MACHINE -> SOFTWARE -> WOW6432Node -> Microsoft -> Windows -> Currentversion -> Run.
Removing the value from there fixes the problem for now!
Hi,
I've been running MDAPI_Plus_0_9_0_1626.zip and the release before that for a while now. The focus lose on start of watching tv is fixed now but it's sometimes(not on a regular basis) losing focus when watching tv. Most of the time I find out that this has happened after a while since I only find out when I want to stop watching tv, switch channel or press any other key on my remote which doesn't respond. When clicking in the screen with my mouse fixes the focus. This only happens while watching tv not in any other screen of mediaportal, so i'm quite sure it's related to mdapi plus again.
Do you have any clue? beta 1620 with the removed registry entry didn't have this problem as far as I know. So I think it's because of any code change after this.