Found Fix: Back button, audio continue

Hi guys,

 

I have somehow stumbled across how to temp fix the issue with returning to previous menu/screen and audio does not automatically stop.

 

I have still be experiencing the bug, in its new form - the cover art shows in the lower left of the screen with and indicator and while the audio continues.

 

I have been using a panasonic tv, and finally found a way to force the audio to stop when returning to menu.

 

The way it works is:

During a video press return/back.

Audio continues to play while on the movie particular/episode detail page.

Press return/back again

Menu goes back once and the audio stops, the cover art disappears from the bottom left.

 

Its quite simple:

 

Connect to the Raspberry Pi over ssh:

Username: root

password: rasplex

 

Navigate to the keyboard.xml user defined folder:

cd .plexht/userdata/keymaps

 

Create a script for the return and stop command:

vi script.stopcommand

import xbmc

xbmc.executebuiltin(“Action(Stop)”)
xbmc.executebuiltin(“Action(PreviousMenu)”)

Then create a keyboard.xml file with the key actions you need for your CEC remote.

To create one use: vi keyboard.xml

 

Here is a sample of mine for a Panasonic (though I could have used simple commands rather than key ids).

The important thing to note is the plex/xbmc script call code. Below shows the command for calling the script when it is saved in the same folder as the keyboard.xml




Left
Right
Up
Down
Select
ParentDir
Back
Info
RunScript(special://masterprofile/keymaps/script.stopcommand)
Select



Restart Raspberry Pi and it should work.

 

I hope this helps some people that are still having that issue.

Seeing as its an upstream issue and Plex still have not fixed it.

 

Thanks

I am here with limited coding experience for questions.

Troy.

 

Hi guys,
 
I have somehow stumbled across how to temp fix the issue with returning to previous menu/screen and audio does not automatically stop.
 
I have still be experiencing the bug, in its new form - the cover art shows in the lower left of the screen with and indicator and while the audio continues .......
 
Troy.


This is not a bug, it's how the new PlexHT PlayQ works. Every time you select any media it gets added to the PlayQ.

The Back or Home button is a navigation button, not a media player button, pressing Stop, which is a media playing button, (or Pause, if you don't have a dedicated Stop button on your TV remote) will stop the media playing.

If you have inadvertently returned to the Home Screen, pressing Tab will return you to whatever is playing with media controls on screen if you have a keyboard. If not, navigate to Play Queue and press enter, this will get you back to what is playing.

Hope this helps.
I understand its not really a bug.... But is an issue in terms of CEC remotes... 
I just thought I would share how I solved it, because I have been looking for a solution for a long time...
 
But its really annoying with a CEC remote to have to press stop and then return.
And seeing as I am setting up a plex system for people with little tech skills, to simply press back solves a lot of problems.
 
I know its technically not a bug....
On Plex HT Mac I press Esc and it stops and returns to the previous menu, I just wanted a way to replicate this on the rasplex... And I am sure others are also looking for this, Especially when using Tv CEC remotes.

I understand its not really a bug.... But is an issue in terms of CEC remotes... 
I just thought I would share how I solved it, because I have been looking for a solution for a long time...
 
But its really annoying with a CEC remote to have to press stop and then return.
And seeing as I am setting up a plex system for people with little tech skills, to simply press back solves a lot of problems.
 
I know its technically not a bug....
On Plex HT Mac I press Esc and it stops and returns to the previous menu, I just wanted a way to replicate this on the rasplex... And I am sure others are also looking for this, Especially when using Tv CEC remotes.


On Rasplex if you are using a keyboard Esc works the same.

I find it quite useful to be able to exit without stopping media playback, I.e. when viewing photo slideshows I select the music I want to listen to, press Exit and then enter the Photos section, music continues playing whilst viewing slideshows.

Please see my other comments on Github relating to this.

Regards

Tr

On Rasplex if you are using a keyboard Esc works the same.

I find it quite useful to be able to exit without stopping media playback, I.e. when viewing photo slideshows I select the music I want to listen to, press Exit and then enter the Photos section, music continues playing whilst viewing slideshows.

Please see my other comments on Github relating to this.

Regards

True, I didn't think of that...

It would be great to have an option to change it either way easily..

I wish you could just map the esc key to a button on the remote - can I do this?

Tr
 

True, I didn't think of that...
It would be great to have an option to change it either way easily..
I wish you could just map the esc key to a button on the remote - can I do this?


Yes you can, you can run cec-client at the command line, press a button on you TV remote that is currently not being used, provided you get a response on screen make a note of the info and create a new CEC mapping for ESC for that button.

Regards

Lets say I used this key:

Down

What command for esc do I put between the key tags?

Is it just esc?

(
Esc

)??


Lets say I used this key:

Down
What command for esc do I put between the key tags?
Is it just esc?
 
(
Esc
)??

When I have some time I will work this out, don't normally use CEC now as I have a dedicated remote which is easier to configure (http://www.msldigital.com/collections/all-products).

Regards

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.