INTERACT FORUM

Please login or register.

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

Author Topic: Stop after current file/30 minutes: MCC doesn't work/exist?  (Read 1162 times)

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Stop after current file/30 minutes: MCC doesn't work/exist?
« on: November 23, 2019, 06:55:20 pm »

Hi,

I'm trying to setup 2 hotkeys with AutoHotKey, : 1) Stop after current file & 2) Stop after x minutes.


1) Stop After Current File: I'm having trouble using the "Stop after current file" MCC #10036. I tested the following command (in W10's CMD):

Code: [Select]
mc25.exe /MCC 10036
The command fails to activate.

I have tested the classic Stop (#10002) command with the following:

Code: [Select]
mc25.exe /MCC 10002
and sure enough it works...

The only way I manage to activate Stop after current file is by clicking on it in JRiver. Maybe the reference (10036) has changed or something?

2) Stop After x Minutes: Is there a MCC reference that stops playback after a given amount of minutes? (like in Player > More Stop > Stop after 10 minutes)? I cannot find it.
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #1 on: November 23, 2019, 07:22:14 pm »

I'll look into these Monday and follow up.  Thanks.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #2 on: November 25, 2019, 07:22:50 am »

1) Stop After Current File: I'm having trouble using the "Stop after current file" MCC #10036. I tested the following command (in W10's CMD):

Code: [Select]
mc25.exe /MCC 10036
The command fails to activate.

This is the full command:
MCC_STOP_AFTER_CURRENT_FILE,                   // [bool bStopAfterCurrentFile (-1 toggles)]

So if you send 0 (or nothing) as the second parameter, it's setting it to off.

Try:
mc25.exe /MCC 10036,1

Or:
mc25.exe /MCC 10036,-1

And for your second question, look at:
MCC_STOP_AFTER_DELAY = 10067

This is the parameter:
MCC_STOP_AFTER_DELAY,                     // [int nMinutes]

Hopefully that gets you going.
Logged
Matt Ashland, JRiver Media Center

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #3 on: November 25, 2019, 07:48:01 am »


Try:
mc25.exe /MCC 10036,1


Tanks, this works!



And for your second question, look at:
MCC_STOP_AFTER_DELAY = 10067

This is the parameter:
MCC_STOP_AFTER_DELAY,                     // [int nMinutes]

Hopefully that gets you going.

So to execute a Stop after 30 minutes, should I write something like this into CMD?

Code: [Select]
mc25.exe /MCC 10067,30
It does not work and I cannot find further information about this MCC in the wiki because the information has not been added there.

Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #4 on: November 25, 2019, 07:51:57 am »

I just tried MC25.exe /MCC 10067,30 and it changed to stopping after 30 minutes in the menu.  Then I fired MC25.exe /MCC 10067,10 and the 10 minute choice was selected in the program.
Logged
Matt Ashland, JRiver Media Center

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #5 on: November 25, 2019, 07:56:17 am »

Ha!

I actually didn't try one of the value (10, 30 or 60) that's being proposed in JRiver's menu. I just tried 2 minutes (mc25.exe /MCC 10067,2) and this does not appear to work.

I tried "mc25.exe /MCC 10067,10" and it works fine indeed as the the relevant option in the menu is ticked.

I'd like to be able to add at least 90 min. & 120 min. as sleeper time. Is there a way to do it now?

Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #6 on: November 25, 2019, 07:58:13 am »

Ha!

I actually didn't try one of the value (10, 30 or 60) that's being proposed in JRiver's menu. I just tried 2 minutes (mc25.exe /MCC 10067,2) and this does not appear to work.

I tried "mc25.exe /MCC 10067,10" and it works fine indeed as the the relevant option in the menu is ticked.

I'd like to be able to add at least 90 min. & 120 min. as sleeper time. Is there a way to do it now?

I think we should accept the values of 90 or 120 no problem.  They just won't be shown in the menu, but they will be used.
Logged
Matt Ashland, JRiver Media Center

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #7 on: November 25, 2019, 08:00:13 am »

I think we should accept the values of 90 or 120 no problem.  They just won't be shown in the menu, but they will be used.
I've just tested the value of 2 minutes and it does not stop playback.
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #8 on: November 25, 2019, 08:10:13 am »

I've just tested the value of 2 minutes and it does not stop playback.

It worked fine for me in my test.  Keep in mind it doesn't stop in 2 minutes but instead triggers a stop after the file it's playing at the two minute mark.  That way it always finishes the file it's on.
Logged
Matt Ashland, JRiver Media Center

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #9 on: November 25, 2019, 08:43:52 am »

Okay, I did a test, I've launched a music playlist and then executed the command: n is the track playing when the command is sent, n+1 the next one, etc.

Quote
Keep in mind it doesn't stop in 2 minutes but instead triggers a stop after the file it's playing at the two minute mark.

I thought it would stop playback 2 minutes after the beginning of track n+1.

What the timer does is I've now understand is that it stops playback at the end of the track during which the timer expires.

It may be ok for music, but it's not perfect for everything: if you listen to long podcast episodes for example and like to set a timer to not miss too much while you're asleep, MCC 10067 is not a great solution...

Thanks anyway, I hope you'll consider making this command 10067 more straightforward in the future & actually stop playback after a set amount of time (regardless of current file playback progress).
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #10 on: November 25, 2019, 09:04:39 am »

I'll make it so negative values issue a hard stop after that much time.   It will be in a coming MC26.

Thanks for the suggestion.
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #11 on: November 25, 2019, 01:31:17 pm »

Or a flag maybe?  0 to stop after current song when timer expires.  1 to stop immediately when timer expires.

Brian.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Stop after current file/30 minutes: MCC doesn't work/exist?
« Reply #12 on: November 25, 2019, 01:36:30 pm »

Hi blgentry.

We could have flagged the value with a high bit flag, but that's basically what negative is.

I've got it in and I think it's working great.

Thanks.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up