INTERACT FORUM

Please login or register.

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

Author Topic: MCWS - How shall UserInterface/Show be used? (-> THEATER VIEW)  (Read 686 times)

masterjoe

  • World Citizen
  • ***
  • Posts: 246
MCWS - How shall UserInterface/Show be used? (-> THEATER VIEW)
« on: February 20, 2025, 11:26:40 am »

Hi there,

another MCWS question  ;D

The command UserInterface/Info returns a string ViewDisplayName that looks like a path to the current (sub) view. That's cool.

However when I try to navigate there using UserInterface/Show with a parameter View=ViewDisplayName from the previous UserInterface/Info call MC just won't do anything. The server returns "Failure" with error code 500 - Internal server error.

How is UserInterface/Show supposed to be used?

FR:
I believe it would be easier if UserInterface/Info would additionally return a unique (sub) view ID (number) which is a direct shortcut to that view. Using that ID in UserInterface/Show for the View parameter would then jump to the exact sub view position. ID must be unique of course and may not change as long as the associated view element exists.

Hope you can enlighten me :)
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2831
Re: MCWS: How shall UserInterface/Show be used?
« Reply #1 on: February 20, 2025, 12:24:50 pm »

/UserInterface/Show seems to return a View name only on Theater mode, and UserInterface/View seems to work only for non-Theater mode :-/
So /UserInterface/Show?view=Video\Files works for me, as long as it's not in Theater mode.

This should also work, but it just opens the Theater view home:
/Control/MCC?command=22043&parameter=Movies\Genre

Similarly, the corresponding MCC command line also only opens Home:
mc33 /MCC 22043,'Movies\Genre'

I suspect the backslash is a problem there. It's also easy to crash MC with this command by providing an invalid parameter/name, both with MC33 and MCWS.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42664
  • Shoes gone again!
Re: MCWS: How shall UserInterface/Show be used?
« Reply #2 on: February 20, 2025, 01:25:59 pm »

Can you share specifics on what crashes? Thanks.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2831
Re: MCWS: How shall UserInterface/Show be used?
« Reply #3 on: February 20, 2025, 01:47:08 pm »

A numeric arg seems to always crash it:

0000005: 3808: General: Launcher: Command Line: /mcc 22043,123
0012791: 13424: General: TopLevelExceptionFilter: Unhandled exception -- program crashing
0012791: 13424: General: TopLevelExceptionFilter: Message: 275, wParam: 6002, lParam: 0
0012792: 13424: General: RunProgram: Start
0012792: 13424: General: RunProgram: Filename: C:\Program Files\J River\Media Center 33\JRCrashHandler.exe / Parameters: JRCrashInfo1688

But the issue is that it doesn't do what it's supposed to when given a proper View name/path.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42664
  • Shoes gone again!
Re: MCWS: How shall UserInterface/Show be used?
« Reply #4 on: February 20, 2025, 02:25:15 pm »

Sure. That command line passes a BSTR and there's really no way to pass that from the command line. I'll add a BSTR safety checker eventually. Thanks.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2831
Logged

masterjoe

  • World Citizen
  • ***
  • Posts: 246
Re: MCWS: How shall UserInterface/Show be used?
« Reply #6 on: February 21, 2025, 01:22:52 am »

/UserInterface/Show seems to return a View name only on Theater mode, and UserInterface/View seems to work only for non-Theater mode :-/
So /UserInterface/Show?view=Video\Files works for me, as long as it's not in Theater mode.

This should also work, but it just opens the Theater view home:
/Control/MCC?command=22043&parameter=Movies\Genre

Similarly, the corresponding MCC command line also only opens Home:
mc33 /MCC 22043,'Movies\Genre'

So in short:
This does not work at all at the moment?

What I intend to do is remember a bookmark in Theater View and be able to recall that exact location afterwards - because my views are deeply nested and it's tedious to always navigate to where I want and go often there. My automation shall have a way to remember and recall any location at any time.

Obviously UserInterface/Info delivers the current view name but also has an issue:
Some sub views add the number of elements to their name, like "Genre (5)".
With the filter I have this might change over time - so it is not unique to where I am looking at. But unique IDs / paths are absolutely required to recall them at any time!
So please allow us to get absolute + unique paths / IDs somehow so that we can get back there!

Also the suggested /Control/MCC?command=22043&parameter=Movies\Genre seems to look like a potential solution for recalling views but also DOES NOT WORK! At least not in Theater View where I want to do this. Plus the problem with absolute paths would remain ATM... see above.

Obviously there is currently no way to
(a) get an absolute / unique path or ID of the view you are currently on in THEATER VIEW and
(b) recall that excat view in THEATER VIEW from (a) from no matter where you are currently

So please fix / correct the commands because we are close but currently not there.

THX

Quote
I suspect the backslash is a problem there. It's also easy to crash MC with this command by providing an invalid parameter/name, both with MC33 and MCWS.

If the backslash is a problem for such a path - what would be the solution?
For me unique IDs for locations which are a number would be better fo remember / recall scenarios - a UUID!
Logged

masterjoe

  • World Citizen
  • ***
  • Posts: 246
Re: MCWS: How shall UserInterface/Show be used? (-> THEATER VIEW)
« Reply #7 on: February 25, 2025, 03:15:18 am »

Bump.

The feature of getting the current view path and RECALLING it afterwards in Theater View is broken.

Could you pls fix it?

THX
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72899
  • Where did I put my teeth?
Re: MCWS - How shall UserInterface/Show be used? (-> THEATER VIEW)
« Reply #8 on: February 25, 2025, 08:09:56 am »

There will be changes in a future version.  Until then, you'll need to avoid using the commands that don't work.
Logged

masterjoe

  • World Citizen
  • ***
  • Posts: 246
Re: MCWS - How shall UserInterface/Show be used? (-> THEATER VIEW)
« Reply #9 on: February 25, 2025, 12:04:50 pm »

There will be changes in a future version.  Until then, you'll need to avoid using the commands that don't work.

So how is it done then when the following MCWS commands - which are intended for this use case - do not do what they shall do?

- UserInterface/Show does not to anything in Theater View (but it should)
- Control/MCC?command=22043&parameter=Movies\Genre does also not work

These are clearly bugs and nothing else.

Which other options in Theater View do I have to:
(a) get the current view path
(b) set the current view path (aka "jump to view")

THX
Logged
Pages: [1]   Go Up