INTERACT FORUM

Please login or register.

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

Author Topic: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.  (Read 2098 times)

metac

  • Recent member
  • *
  • Posts: 31

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.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41903
  • Shoes gone again!
Re: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.
« Reply #1 on: June 24, 2020, 10:48:29 am »

You could play with File/Bookmark to set the bookmark to the value you want.
Logged
Matt Ashland, JRiver Media Center

metac

  • Recent member
  • *
  • Posts: 31
Re: MCWS: Add optional Position to PlayByKey/PlayByFilename requests.
« Reply #2 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).
Logged
Pages: [1]   Go Up