remaining time on companion

Hello Phillippe!

Recently I tested controlling millumin by Companion.

Most of Functions worked well.

But, I couldn't get the remaining time of media well.

I put "$(millumin:timeLayerRemainingTime)" on button text string and It seemed work.

but it only showed secends. and I want to convert it to hh:mm:sss format.

Do you have any ideas to fix this?


Comments

  • I found it on github issues.

    If someone are experiencing the same problem, can solve it this way.

    substr(secondsToTimestamp(round($(millumin:timeLayerRemainingTime))),3,8)


  • Hello @HWANK1M,

    You can use the expression : secondsToTimestamp($(millumin:timeLayerRemainingTime))

    Do not forget to put your filed in "expression" mode :

    Best. Philippe

  • Thanks Philippe!

    You are the best!

  • Hello Philippe and thank you again for you continuing support.

    This solution works perfect.

    Is it possible to "truncate" the HOURS?

    It will be great to just have MM:SS (larger font)

    Much Appreciated

    Alex

  • Hello @mixedbyalex,

    Use secondsToTimestamp($(millumin:timeLayerRemainingTime),"mm:ss")

    More info in this article.

    Best. Philippe

  • Hello Phillippe, I'm using Millumin 5 and using the "Time Remaining" expression I can get the timecode to display 00:00 but it doesn't actually countdown. What do I need to look at to accomplish this?

  • Hello @GHartley,

    Your layer needs to be named "layer" or what you enter in the connection's settings. Also, the port must be right.

    Be sure to follow this tutorial to setup Companion and Millumin together.

    Best. Philippe

  • I think something changed in the more recent versions of Companion. It looks like they updated their code to be $(Millumin:media_Layer_remainingTime), but it doesn't work no matter what I do. If I do $(Millumin:media_firstByIndex_remainingTime) it will successfully give generate the time for the lowest layer, but trying to link to a specific layer will fail.

  • Hello @Gannoes,

    I think something changed in the more recent versions of Companion. It looks like they updated their code to be $(Millumin:media_Layer_remainingTime), but it doesn't work no matter what I do. If I do $(Millumin:media_firstByIndex_remainingTime) it will successfully give generate the time for the lowest layer, but trying to link to a specific layer will fail.

    Indeed, now you can track the time of multiple layers : activate the option Enable tracking of multiple layer then set multiple names separated by a coma in Name of the layer to track time.

    Then go to the Variables tab to see all available variables for the Millumin connection.

    Best. Philippe

  • edited June 18

    Having been caught out by this again this week.

    If the time is not showing (you just get '0')...

    In companion, enter the layer name as lowercase. The OSC strips the capital letters (somewhere).

  • Coming back to this.... I entered "secondsToTimestamp($(millumin:media_Full_remainingTime), "mm:ss")" into Companion (v4.0.2) and I get a 00:00 display on my streamdeck. Anyone else have any suggestions?

    Before I was either getting ":NaN" or "0". Using Millumin version 4.18k.

  • Disregard... I got it work.

Sign In or Register to comment.