INTERACT FORUM

Windows => Plug-in Development => Topic started by: metac on May 24, 2020, 05:06:10 am

Title: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.
Post by: metac on May 24, 2020, 05:06:10 am
I store the start position for episode video files to jump past "previously on..." type content.

My current MCWS calls are slow and prone to errors (volume messed up/doesn't jump to correct position).

Pseudo code:

- call get "Playback/Volume" (used to suppress the initial playback audio until position is set)
    - if not muted call "Playback/Volume" and set to 1/100, not 0, to prevent 'No Signal' on-screen message from receiver
    - then wait 250ms
- call "Playback/PlayByKey"
- wait 2000ms approx to allow display to open and playback to start otherwise the subsequent call to "Playback/Position" is ignored
- call ""Playback/Position" to jump to "real" start position
- wait 250ms
- call "Playback/Volume" to restore volume level

Having a built in optional Position parameter that does the same as (overrides) the bookmarking logic would great.
Title: Re: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.
Post by: Matt on June 24, 2020, 10:48:29 am
You could play with File/Bookmark to set the bookmark to the value you want.
Title: Re: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.
Post by: metac on June 28, 2020, 02:56:57 am
I tried that. It's ok most of the time, but if the time i want to jump to is too close to the start (or the end) it ignores it. Anyway, you can also ignore/archive this request. I've moved on to mpv (libmpv specifically).