INTERACT FORUM
More => Old Versions => JRiver Media Center 33 for Windows => Topic started by: masterjoe 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 :)
-
/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¶meter=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.
-
Can you share specifics on what crashes? Thanks.
-
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.
-
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.
-
The MCWS equivalent also crashes MC:
http://127.0.0.1:52199/MCWS/v1/Control/MCC?command=22043¶meter=123
And this doesn't work:
http://127.0.0.1:52199/MCWS/v1/Control/MCC?command=22043¶meter=Movies\Genre
-
/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¶meter=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¶meter=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
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!
-
Bump.
The feature of getting the current view path and RECALLING it afterwards in Theater View is broken.
Could you pls fix it?
THX
-
There will be changes in a future version. Until then, you'll need to avoid using the commands that don't work.
-
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¶meter=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
-
I'll add support for the MCWS function UserInterface/Show in Theater View for the coming MC34. Thanks for the help.