Rasplex and the back button while watching a video

I love Rasplex but one thing that’s always bugged me is when you accidentally press the back button while a video is playing- you go back to the menus and the video (sound) keeps playing. This seems a bizarre operation, why would you ever want that? Have I missed something? You have to go back into a video to stop it.

@Rikrok said:
I love Rasplex but one thing that’s always bugged me is when you accidentally press the back button while a video is playing- you go back to the menus and the video (sound) keeps playing. This seems a bizarre operation, why would you ever want that? Have I missed something? You have to go back into a video to stop it.

You haven’t missed anything. Rasplex allows you back into the menu while the video or music continues. It assumes that if you want the video or music you’re playing to stop, you will stop playback instead.

I for one would vote the back button stops a video, or least that there’s an option in the settings for it to work that way. Anyone who uses my tv gets confused by the current behaviour. It seems to me a legacy thing from the original XBMC code where it made sense as the video would keep playing behind the menus.

I guess its a zapping behaviour, where you check what other shows you have while the original one keeps playing.

I haven´t tested it, but maybe you can edit the profile.xml of your remote and assign those two actions to the back button when you have a full screen video image.

@Rikrok said:
I for one would vote the back button stops a video, or least that there’s an option in the settings for it to work that way. Anyone who uses my tv gets confused by the current behaviour. It seems to me a legacy thing from the original XBMC code where it made sense as the video would keep playing behind the menus.

This behavior is still there. The default OpenPHT skin just doesn’t have transparent sections like the other preinstalled skins: Aeon Nox and Black Edition. You can enable video visibility in those skins.

@videotecaCNSU said:
I guess its a zapping behaviour, where you check what other shows you have while the original one keeps playing.

I haven´t tested it, but maybe you can edit the profile.xml of your remote and assign those two actions to the back button when you have a full screen video image.

I think @Rikrok would want to alter the back function to the stop function in the keyboard.xml while in fullscreen.

@benjaminwolf said:
I think @Rikrok would want to alter the back function to the stop function in the keyboard.xml while in fullscreen.

Does anyone know how to do this? Would it not be more complicated than that as you’d want the back button to function as normal when the play controls are up on screen to get rid of them?

So, you can´t map two actions to the same key, but you could map the key while in full screen to a script with both actions with something like on the keyboard.xml behaviour

<back>System.Exec(/storage/back-script.py)</back>

[edit] Changed my mind. Going to test this first.

I have been using the IR-remote for Odroid C2 and WeTek Hub for the last week or so and personally think mapping the back button to stop when playing video makes much more sense with this type of remote (no stop button).

Any thoughts on if we should include such change in the 1.7.0 release?

Untested but something like http://kodi.wiki/view/Alternative_keymaps_for_most_remotes#Keymap_2_-_stop_a_video_when_backing_out_of_it could work to manually remap the back button

I think it’s a good idea on the WeTek Hub to provide a default remap since it comes with a remote. I was trying to get the “longpress” mod to work on 1.6.3.125 with my C2, but I don’t think it’s supported. The idea being a normal short press would go back and a long press would stop.

@benjaminwolf said:
I think it’s a good idea on the WeTek Hub to provide a default remap since it comes with a remote. I was trying to get the “longpress” mod to work on 1.6.3.125 with my C2, but I don’t think it’s supported. The idea being a normal short press would go back and a long press would stop.

Wouldn´t you still have to do two actions with that approach?

@videotecaCNSU said:

@benjaminwolf said:
I think it’s a good idea on the WeTek Hub to provide a default remap since it comes with a remote. I was trying to get the “longpress” mod to work on 1.6.3.125 with my C2, but I don’t think it’s supported. The idea being a normal short press would go back and a long press would stop.

Wouldn´t you still have to do two actions with that approach?

The button would have dual functionality. You’d just hold down the button for a sec or so longer when you wanted it to stop, but you’d keep ‘back’ functionality with a short press. If you forgot to hold down the back button and did a short press, it wouldn’t stop. But you could just perform a second long press if that happened. That seems like it would work well for me.

@Rikrok
I tested remapping back to stop in fullscreen mode and it works fine. I don’t run the controls typically while the video is playing though. I use pause/play to enter the controls, make my changes and return to the video with pause/play. Your needs maybe different.

The example @kwiboo linked to works fine for me btw.

<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <FullscreenVideo>
    <remote>
      <back>stop</back>
    </remote>
    <keyboard>
      <back>stop</back>
      <backspace>stop</backspace>
      <escape>stop</escape>
    </keyboard>
  </FullscreenVideo>
</keymap>

@benjaminwolf Superb thanks, I’ll test it out this weekend