INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Change Subtitle or Audiotrack with MCC Commands  (Read 2798 times)

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Change Subtitle or Audiotrack with MCC Commands
« on: February 21, 2015, 09:54:32 am »

Hello,

i have a little problem.

I control my MCC PC with mediola, an controlsystem which can control devices with IR, or with Networkcommands and home automation systems and so on.

I integrate a lots aof MCC commands from the wiki (http://wiki.jriver.com/index.php/Media_Center_Core_Commands), but there are some commands which didnt work in network, so i have to send them over IR.

Playbackfunctions, navigation all work fine with MCC commands, but changing the view mode like theaterview, audioview, videoview and so on didnt work with the commands in the wiki, only with IR.

Then, i cant change any subtitle oder audiotrack on a video, i was trying the mcc commands in the wiki, but the only reaction is that the menu with the  available subtitle oder audiotracks will shown, but i cant change them.

I try all these commands like

10053   MCC_SET_AUDIO_STREAM   int nIndex (-1 toggles forward, -2 toggles backwards)
10052   MCC_SET_SUBTITLES   int nIndex (-1 toggles forward, -2 toggles backwards)

(in mediola the lool like these for example   <key id="Videostream Zurueck" code="Control/MCC?Command=10054,-2"/>)

or

28032   MCC_PLAYBACK_ENGINE_SET_SUBTITLES   int nIndex (-1 toggles forward, -2 toggles backwards)
28033   MCC_PLAYBACK_ENGINE_SET_AUDIO_STREAM   int nIndex (-1 toggles forward, -2 toggles backwards)

but no one does work. All commands only show the menu with available tracks and subtitles, but a cant change anything.
Navigate with arrowbuttons in the menu also didnt work.

Has anyone a solution for me which commands or enums did work?

Thanks for your help

Logged
My English is not perfect, so be merciful with me

newguy1

  • Recent member
  • *
  • Posts: 47
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #1 on: February 21, 2015, 02:46:34 pm »

I'm kind of interested in this too...
Logged

Soul_Rvr911

  • Galactic Citizen
  • ****
  • Posts: 334
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #2 on: February 21, 2015, 03:35:27 pm »

You can do this using MCWS by using the following URLs:

ToggleAudioStream:
/MCWS/v1/Control/MCC?Command=10053&Parameter=-1

ToggleSubtitles:
/MCWS/v1/Control/MCC?Command=10052&Parameter=-1

I figured this out for use in my app eos.

-L
Logged
Check out my JRiver remote application eos, available for Android and BlackBerry 10!
Android: http://yabb.jriver.com/interact/index.php?topic=89392.0
BB10: http://yabb.jriver.com/interact/index.php?topic=79677.0

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #3 on: February 21, 2015, 04:20:44 pm »

Yeah... All MCC commands (and the entire MC command line) can be executed via MCWS, so everything that can be done locally can be done via the network.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #4 on: February 22, 2015, 03:26:59 am »

Yeaha, this was the solution.

<key id="Videostream Zurueck" code="Control/MCC?Command=10054,-2"/>

dont work, but

<key id="Videostream Zurueck" code="Control/MCC?Command=10054&Parameter-2"/>

work perfect. Now i can change audiotracks, subtitle and so on.

Many thanks, great forum here!!!  ;D ;D ;D ;D

Now, i had to modify some comands in the database of my mediola control  ;)
Logged
My English is not perfect, so be merciful with me

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #5 on: February 22, 2015, 11:41:40 am »

So, all commands are working except these three

Page Up and Down didnt work

<key id="Seite Auf" code="/MCWS/v1/Control/Key?Key=Page Up&Focus=1"/>
<key id="Seite Ab" code="/MCWS/v1/Control/Key?Key=Page Down&Focus=1"/>

and Videoview

<key id="Theater-Video" code="MCWS/v1/Control/MCC?Command=22001&Parameter=5"/>

All the other viewmodes are going.

Has anyone an idea?
Logged
My English is not perfect, so be merciful with me

Soul_Rvr911

  • Galactic Citizen
  • ****
  • Posts: 334
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #6 on: February 22, 2015, 11:50:50 am »

So, all commands are working except these three

Page Up and Down didnt work

<key id="Seite Auf" code="/MCWS/v1/Control/Key?Key=Page Up&Focus=1"/>
<key id="Seite Ab" code="/MCWS/v1/Control/Key?Key=Page Down&Focus=1"/>

and Videoview

<key id="Theater-Video" code="MCWS/v1/Control/MCC?Command=22001&Parameter=5"/>

Has anyone an idea?
For "Page Up" and "Page Down" (and any other parameter that requires a space), make sure you URL encode it. Try "Page%20Up" and "Page%20Down".

I'm not sure about your second command, Video View. I've never used it. Are you sure you don't need to put MC in Theater View first? That command would be:

MCWS/v1/Control/MCC?Command=22000&Parameter=3
Logged
Check out my JRiver remote application eos, available for Android and BlackBerry 10!
Android: http://yabb.jriver.com/interact/index.php?topic=89392.0
BB10: http://yabb.jriver.com/interact/index.php?topic=79677.0

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #7 on: February 22, 2015, 12:42:17 pm »

Hi,

yes I am in theater view.  With the commands for audio or video  you can directly jump in the categories without scrolling in theater view main menu.
All commands work,  only video does nothing. 

By the pages,  your tip with the paste between I will test tomorrow.  Without space like "PageUp"  for example or with the percent between.
Logged
My English is not perfect, so be merciful with me

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #8 on: February 22, 2015, 06:20:05 pm »

Without space like "PageUp"  for example or with the percent between.

URLs (these and the ones you type into your web browser's address bar) cannot have spaces nor most other special characters.  This is described here:
http://en.wikipedia.org/wiki/Percent-encoding
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #9 on: February 23, 2015, 08:20:11 am »

Yes, i rather now, but i overlook this  in the command list in my database, i didnt think abaout it ;)
Logged
My English is not perfect, so be merciful with me

Inquisition

  • World Citizen
  • ***
  • Posts: 216
Re: Change Subtitle or Audiotrack with MCC Commands
« Reply #10 on: February 24, 2015, 04:41:32 am »

OK, Page up and down works.

The paste was the error.

Pageup, Pagedown, PageUp PageDown, Page_Up Page_Down, 28023 28024, Page%20Up Page%20Down, all them are working now.

 ;)

So there many cababilities
Logged
My English is not perfect, so be merciful with me
Pages: [1]   Go Up