Kodi Community Forum
Shortcut for audio track change - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Shortcut for audio track change (/showthread.php?tid=142547)



Shortcut for audio track change - pettergulbra - 2012-10-12

Hi

Short question.

Is there an shortcut for changing the audio track in an movie?

You have "A" for adjust the sync of sound.
But can`t find if there is "letter" for audio track

Sorry if this has being asked before.
Google did not find anything...Sad


RE: Shortcut for audio track change - jmarshall - 2012-10-12

It's probably not setup by default. Look in keyboard.xml in system/keymaps for the default map. Copy it to userdata/keymaps if you change it. AudioNextLanguage is the action IIRC.


RE: Shortcut for audio track change - pettergulbra - 2012-10-12

I will look at this when I get home from work today...
It`s Friday, and that`s the last workday of the week... Nice:-)


RE: Shortcut for audio track change - pettergulbra - 2012-10-12

Hi again.

Sorry, but I did not find/understand this.

I opened keyboard.xml file, and searched for AudioNextLanguage but did not find this?

And out from the name"audionextlanguage" will this say that it changes the language file (track).
Not between the different audio sets, like DTS, Dolby and so on?


RE: Shortcut for audio track change - Ned Scott - 2012-10-13

In the keyboard.xml file you just use a key that isn't being used (or find one that is being used for something you don't care for) and map it to "audionextlanguage". For example, you can add it to the section that says <fullscreenvideo> (since that's the only time we will need this action) and add

<k>AudioNextLanguage</k>

then save keyboard.xml to your userdata (wiki) folder under "keymaps".

Then the letter K will cycle through the audio language tracks.

As for your second question, I'm not really sure. I think it will cycle all of the audio tracks.


RE: Shortcut for audio track change - pettergulbra - 2012-10-16

Thanks, this worked like a charm..
Nice :-)




RE: Shortcut for audio track change - pettergulbra - 2012-12-09

Hi, again

This don`t work anymore.

AudioNextLanguage does not do this ant more. Just comes up vomule something.

I have changed the from "k" to "RightParenthesis", because "RightParenthesis" is free from what I could
search in keyboard XML file. (there is soon nothing left for new things on the keyboard that could work with an Harmony remote)

Is there something new with FRODO?


RE: Shortcut for audio track change - Ned Scott - 2013-01-06

(2012-12-09, 00:33)pettergulbra Wrote: Hi, again

This don`t work anymore.

AudioNextLanguage does not do this ant more. Just comes up vomule something.

I have changed the from "k" to "RightParenthesis", because "RightParenthesis" is free from what I could
search in keyboard XML file. (there is soon nothing left for new things on the keyboard that could work with an Harmony remote)

Is there something new with FRODO?

I just tried it with Frodo RC3 and it's still working for me.


RE: Shortcut for audio track change - pettergulbra - 2013-01-18

Sorry for late answer, but yes it looks like it working OK.

Thanks


RE: Shortcut for audio track change - AbRASiON - 2016-07-10

I just did this and it worked for me, I can't believe this isn't a default keyboard mapping but all these idiot PVR things are, which interrupt playback. MAN I wish I could find an option which just turns off ALL PVR STUFF ENTIRELY FOREVER


RE: Shortcut for audio track change - Ned Scott - 2016-07-10

I plan on proposing this as a default for long-press up during video playback. Long-press down would then be subtitles. People I spoke with found these more useful than next/prev.


RE: Shortcut for audio track change - AbRASiON - 2016-08-12

As in enable subtitles / disable or change language of subtitles?

Ned how do I make opensubtitles my default provider btw? I'm so sick of browsing to the right to switch provider, I never use the stock one.


RE: Shortcut for audio track change - Ned Scott - 2016-08-13

Both. Subs get rotated and "off" is one of the options.

Default provider should be an option in the subtitle settings under Settings -> Videos.


RE: Shortcut for audio track change - badsheep - 2023-03-11

Hello,

I'd like to disable that feature, but I don't know where to do it...

Coud anyone help me ? Thanks !

-- EDIT --

I tried adding 

Code:
<up mod="longpress"></up>
<down mod="longpress"></down>

or

Code:
<up mod="longpress">noop</up>
<down mod="longpress">noop</down>

to my keymap xml, with no success.


RE: Shortcut for audio track change - badsheep - 2023-03-11

OK it works, there was 2 errors :

- it's Up (not up), the cap was missing.
- those lines has to be put in the "fullscreen section", not the global.

Here is below my ***.xml file, to help anyone trying to do the same stuff :

Code:
<keymap>
  <global>
    <keyboard>
     
    <!-- NOTIFICATIONS SON -->
        
    <j mod="shift,alt">Notification(ENCEINTES DU BUFFET,NORMAL,4)</j>
    <b mod="ctrl,alt">Notification(SON 5.1,NORMAL,4)</b>
    <t mod="ctrl,alt">Notification(SON STÉRÉO,MODE CINÉMA,4)</t>
    <d mod="shift,alt">Notification(BASSES,SANS SUB,4)</d>
        
    <u mod="shift,alt">Notification(DELAY AUDIO,NORMAL,4)</u>
    <k mod="shift,alt">Notification(DELAY AUDIO,NETFLIX,4)</k>
    <l mod="ctrl,alt">Notification(SON,FORMAT ORIGINAL,4)</l>
    <r mod="shift,alt">Notification(BASSES,SANS SUB ET BAISSÉES,4)</r>
        
    <n mod="shift,alt">Notification(SON,COMPRESSÉ,4)</n>
    <v mod="shift,alt">Notification(SON,DYNAMIQUE ORIGINALE,4)</v>
        
    <y mod="shift,alt">Notification(BASSES,NORMALES,4)</y>
    <!-- DECALAGE AUDIO A LA VOLEE -->
        
    <x mod="shift,alt">AudioDelayPlus</x>
    <s mod="shift,alt">AudioDelayMinus</s>
        
        
    <!-- IMAGE -->
               
    <e mod="shift,alt">zoomout</e>
    <f mod="shift,alt">verticalshiftdown</f>
    <g mod="shift,alt">zoomin</g>
    <h mod="shift,alt">verticalshiftup</h>
        
        
    <!-- REATTRIBUER LE RACCOURCI CLAVIER CTRL+SHIT+R (qui génère un changement de colorimétrie) POUR PAS QU'IL S'ACTIVE AVEC VOLUME UP-->
        
    <r mod="ctrl,shift">noop</r> 
                           
    </keyboard>  
  </global>
  <FullScreenVideo>
    <keyboard>
    
    <!-- SUPPRESS ACTIONS UP et DOWN LONG PRESS-->
    
    <Up mod="longpress"></Up>
    <Down mod="longpress"></Down>
      
    </keyboard>
  </FullScreenVideo>
</keymap>