v17 remote - stop button to actually stop the video playback through PVR
#1
Hi,

running LibreELEC 8.2.5 - Kodi 17.6 on a Raspberry device fitted with a IR sensor.  I was looking to define a key to actually stop the video playback through PVR and failed so far.
I also failed to understand the logic (if any) of the Keymap files by reading through:
https://kodi.wiki/view/Keymap#Structure

- my actual /storage/.config/lircd.conf contains:
          KEY_EXIT                 0x6897
- then /storage/.config/Lircmap.xml contains:
Code:
<lircmap>
...
                <stop>Stop</stop>
...
             <stop>KEY_EXIT</stop>
        </remote>
</lircmap>
If I press the KEY_EXIT key on my remote, the playback won't stop, instead it will exit to the main menu. Pretty much the same behavior like when I press the KEY_BACK button.
I found some inspiration from another thread here in the forum (lost the link) and went on to define a /storage/.config/keymap.xml with the following content:
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
    <FullscreenVideo>
        <remote>
            <stop>Stop</stop>
        </remote>
    </FullscreenVideo>
</keymap>

This last try didn't help either. I'd be thankful if some of the devs/designers could point me to a solution.
Reply
#2
Tried adding the key to the

 <FullscreenLiveTV>


section in your remote keymap?
Reply
#3
Thanks for the hint, tried it and got the same result as with <FullscreenVideo>, TV keeps playing in the background and I'm brought to the main menu (as with KEY_BACK).
Just noticed that both  <FullscreenVideo> &  <FullscreenLiveTV> are listed in the Windows section:
https://kodi.wiki/view/Keymap#Windows

In the general Actions section:
https://kodi.wiki/view/Keymap#Actions
there is only PlayPvrTV available and no "StopPvrTv".

Inspecting ActionIDs.h is mentioned for learning about all the available actions, unfortunately that file is not on github for the Krypton release (maybe it didn't even exist).
https://github.com/xbmc/xbmc/blob/master...ctionIDs.h

I forgot to mention, I'm using the Tvheadend PVR addon ( pvr.hts ) to play TV Channels.
Reply
#4
Image


Another failed attempt to resolve this. As already mentioned I have a hard time understanding the Keymap stuff, the logic, how to use it and what's available/functional.
Tried to use one of the Player built-in's:
https://kodi.wiki/view/Keymap#Player_built-in.27s
- modified keymap.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
    <Global>
        <remote>
            <stop>PlayerControl(Stop)</stop>
        </remote>
    </Global>
</keymap>
- restarted Kodi and got the same results when pressing KEY_EXIT - TV still playing in the background and I'm back to main menu.

Not sure it's relevant, but I'm using the OMX acceleration (OMXPlayer) instead of the default Kodi VideoPlayer (with MMAL acceleration), because the latter is pretty useless performance-wise on vc4 Raspberry boards.
Reply
#5
There could be some other solutions to this, but I still need confirmation/explanations. Ditch <stop>PlayerControl(Stop)</stop> and use <stop>Stop</stop> in different contexts:
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
    <VideoOverlay>
        <remote>
            <stop>Stop</stop>
        </remote>
    </VideoOverlay>
</keymap>
or
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
    <PlayerControls>
        <remote>
            <stop>Stop</stop>
        </remote>
    </PlayerControls>
</keymap>
or
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
    <VideoOSD>
        <remote>
            <stop>Stop</stop>
        </remote>
    </VideoOSD>
</keymap>
... trial and error instead of logic Smile
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
remote - stop button to actually stop the video playback through PVR00
This forum uses Lukasz Tkacz MyBB addons.