INTERACT FORUM

Please login or register.

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

Author Topic: MCC 28038 doesn't seem to work - Limiting discusion to this issue only  (Read 2398 times)

Movieman

  • World Citizen
  • ***
  • Posts: 113

I raised this issue in a previous thread that unfortunately devolved into multiple directions of discussion.
I'd like to keep this thread focused on this one issue, please. ;D

Back in 2016 this MCC was added to MC 21:

Code: [Select]
21.0.38 (1/18/2016)
9. NEW: Added MCC_PLAYBACK_ENGINE_VIDEO_ZOOM (28038) to set the zoom for a playing video.
28038 MCC_PLAYBACK_ENGINE_VIDEO_ZOOM int nZoomAmount (100 is 1.0)

I have unsuccessful making the 28038 MCC function operate in MC 26. These have been my efforts so far:

First I created a custom resources file Resource.xml located in C:\Program Files\J River\Media Center 26\Data\Custom Resources:

Code: [Select]
<ACCELERATORS>
<!-- Playback engine Zoom custom shortcuts (shared) -->
<Entry TranslateFlags="32" Param="100" Command="28038" Key="Alt;F1"/>
<Entry TranslateFlags="32" Param="130" Command="28038" Key="Alt;F2"/>
<Entry TranslateFlags="32" Param="150" Command="28038" Key="Alt;F3"/>
</ACCELERATORS>

The defined hot keys had no apparent effect.

When that failed to work, I modified the default resources file Resource.xml located in C:\Program Files\J River\Media Center 26\Data\Default Resources.

This also failed to work.
To make sure that it wasn't an issue with a existing key conflict I commented out two existing entries for the + and - keys and substituted my additions for them):

Code: [Select]
    <!-- Global shortcuts -->
    <Entry Key="Ctrl;Shift;F12" Command="25015" Param="1" Global="1" />

    <!-- Playback engine Zoom custom shortcuts (shared) -->
    <!-- <Entry Key="Alt;F1" Command="28038" Param="100" TranslateFlags="32" /> -->
    <Entry Key="+" Command="28038" Param="150" TranslateFlags="32" />
    <Entry Key="-" Command="28038" Param="250" TranslateFlags="32" />

    <!-- Playback engine shortcuts (shared) -->
    <!-- <Entry Key="+" Command="28000" TranslateFlags="32" /> -->
    <Entry Key="I" Command="28000" TranslateFlags="32" />
    <!-- <Entry Key="-" Command="28001" TranslateFlags="32" /> -->
    <Entry Key="O" Command="28001" TranslateFlags="32" />

Again,the defined hot keys had no apparent effect however the + and - keys no longer caused a zoom as expected.

I have exhausted my efforts since I have no access to the code.

So, could we please get a MC guru to check if there was a possible regression or if any other issues that may have disabled or broken the 28038 MCC code function exist?

Thanks (in advance)

Environment:
MC 26
Windows 8.1
Intel core I7-6700K
NVidia GT 1030 Driver 425.31
DirectX 11


Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!

So, could we please get a MC guru to check if there was a possible regression or if any other issues that have disabled or broken the 28038 MCC code function exist?

I just played a video and fired MCC 28038 of 120 and 50 from the command line and it worked fine.

Not sure if there's anything else I can test?

Thanks.
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113

Matt - Exactly how did u do that, with a full screen video running?
I forgot to mention: I'm running Red October HQ.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!

I forgot to mention: I'm running Red October HQ.

Maybe try turning off HQ as a test?
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113

No difference... 
I and O work to zoom, what am i missing, if anything?  Does 28038 have to be defined anywhere else?
again how did you access a command prompt when in full screen?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!

Try playing a video and running the launcher:
MC26.exe /MCC 28038,50

Just have a command prompt window open and Alt+Tab to get to it.

Does that work?
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113

Yes that works
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!

Well that means the command is working.

So you just need to figure out why it's fumbling.  Maybe try just using 0 as the parameter for translation.  You're saying TRANSLATE_FLAG_TARGETS_PLAYBACK_ENGINE but I'm not sure if that's right for this command.
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113

But I don't understand the numeric values

28038   MCC_PLAYBACK_ENGINE_VIDEO_ZOOM      int nZoomAmount (100 is 1.0) implies an absolute zoom value

Did the 50 make it 50% larger?  It should have set the zoom to 50%
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!

200 is smaller and 50 is bigger.
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113
Re: MCC 28038 doesn't seem to work - Limiting discusion to this issue only
« Reply #10 on: April 30, 2020, 02:17:58 pm »

Not what I was hoping for.  I expected this option to allow me to establish hot keys for specific values of zoom to use for different aspect ratio source material.

Like 1.85:1 vs 2.20:1 vs 2.55:1.  Put in a specific value and the zoom will change to that value.  These input values are relative to the previous zoom and this doesn't do anything the I and O keys don't already do.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: MCC 28038 doesn't seem to work - Limiting discusion to this issue only
« Reply #11 on: April 30, 2020, 02:20:13 pm »

These input values are relative to the previous zoom and this doesn't do anything the I and O keys don't already do.

I don't think that's correct.  Setting a value of 200 _always_ just zooms out by the same amount.  It is not relevant what the current setting is.

I was wondering if we should add a mode for that, but it currently is independent.
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113
Re: MCC 28038 doesn't seem to work - Limiting discusion to this issue only
« Reply #12 on: April 30, 2020, 02:56:42 pm »

Sucess :D

1. I had to remove the translate flags from the Resource.xml
2. The required parameter is actually 100 - the desired zoom amount. ::)
3. It does zoom from the baseline of 100.

So we are all good.

Thanks again, I don't think I would have ever figured it out without your Help.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: MCC 28038 doesn't seem to work - Limiting discusion to this issue only
« Reply #13 on: April 30, 2020, 02:57:46 pm »

Glad you got it.
Logged
Matt Ashland, JRiver Media Center

Movieman

  • World Citizen
  • ***
  • Posts: 113
Re: MCC 28038 doesn't seem to work - Limiting discusion to this issue only
« Reply #14 on: April 30, 2020, 03:24:52 pm »

For anyone else who needs this (and doesn't want to reinvent the wheel)

Contents of:

C:\Program Files\J River\Media Center 26\Data\Custom Resources\Resource.html

Code: [Select]
-->

<MJRS version="1.0">

<!--
COMMANDS:

  Command: the MCC command index
  Text: the string to be used in menus, etc.
  Param: the parameter for the MCC command (leave empty if param doesn't matter)
 
  Text Tokens: [Product Name], [Character]
-->

<!--
ACCELERATORS:

  Key: semi-colon delimited list of key strokes to be pressed (see list below for special keys)
    note that the only valid combinations are: [Key], [Key];Ctrl, [Key];Ctrl;Shift, [Key];Alt
  Type: the type of command (defaults to MCC)
    MCC: the command is an MC command
    Program: the command is a program to run
  Command: the MCC command index / name of program
  Param: the parameter for the MCC command / program arguments
  TranslateFlags: flags that determine when and how an accelerator is translated (binary or'd together)
    1: don't translate in edits, comboboxes, and other data entry controls
    2: don't translate in fullscreen mode or theater view
    4: don't translate in any type of popup window
    8: only translate in fullscreen
    16: don't translate in IE, VB controls, or other unknown rich controls
    32: targets playback engine / display (DVD, image playback, etc.)
    64: only translate when Action Window is focused
    128: not in Theater View
    256: not in report controls
    512: not in web browser
    1024: not in video player
  NoShowAsShortcut: 1 if you don't want MC to show this shortcut in menus, tooltips, etc.
  Global: 1 if you want the accelerator to be translated even when MC doesn't have the focus
 
  Special key list: Insert, Delete, -, +, Right, Left, Up, Down,
    NumPad0, NumPad1, NumPad2 (etc.), F1, F2, F3 (etc.), Backspace, Enter, Escape,
    Apps, Page Up, Page Down, Home, End, Space, Print Screen, Tab, Multiply ('*' on NumPad),
    Decimal ('.' on NumPad)

  Remember that order is relevant when the same shortcut appears multiple times.
-->

  <ACCELERATORS>

    <!-- Playback engine Zoom custom shortcuts (shared) -->
    <Entry Key="Alt;F1" Command="28038" Param="100" />  <!-- 1.77:1 -->
    <Entry Key="Alt;F2" Command="28038" Param="96" />    <!-- 1.85:1 -->
    <Entry Key="Alt;F3" Command="28038" Param="86" />    <!-- 2.00:1 -->
    <Entry Key="Alt;F4" Command="28038" Param="75" />    <!-- 2.20:1 -->
    <Entry Key="Alt;F5" Command="28038" Param="65" />    <!-- 2.40:1 -->
    <Entry Key="Alt;F6" Command="28038" Param="55" />    <!-- 2.55:1 -->
    <Entry Key="Alt;F7" Command="28038" Param="47" />    <!-- 2.76:1 -->
    <Entry Key="Alt;F8" Command="28038" Param="40" />    <!-- 2.85:1 -->

  </ACCELERATORS>

</MJRS>

You probably will have to adjust the Param= value for your specific setup.

Best to you all in this time of stress.
Logged
Pages: [1]   Go Up