More > JRiver Media Center 31 for Windows

MCC for seeking as a percentage

(1/1)

blgentry:
Hello,

A while back I was experimenting with MCC 10048:

--- Code: ---10048 MCC_SEEK int nPositionMilliseconds
--- End code ---

My application is to map hot keys to jump to the middle, end, etc of a playing file.  This MCC doesn't work very well for that particular purpose because it's not possible to calculate the number of milliseconds and then pass it to a hot key, as the hot keys are statically defined in Resource.xml .

I looked for another MCC for Seek that would take a percentage, but I don't think it exists.  Maybe a new one can be created?  Or 10048 could be modified to take a percentage (0 - 100) as an option.  For example the default can be milliseconds but choosing option 1 explicitly would make it a percentage.  Like:

--- Code: ---<Entry Key="Ctrl;5" Command="10048" Param="50,1" />
--- End code ---

Thanks for reading.

Brian.

Matt:
We could accept negative numbers to mean percent?  -50 would seek to the middle.  Or we could add a new MCC.  What do you recommend?

Matt:
I think just adding this is clean:
NEW: Added an MCC to seek to a percent (MCC_SEEK_PERCENT / 10072).

blgentry:
Awesome.  Thanks Matt.  I look forward to seeing it in the next build!

Brian.

blgentry:
I just tried out the new MCC 10072 .  It works exactly as I hoped it would.  Thanks Matt.  :)

Brian.

Navigation

[0] Message Index

Go to full version