0

UDP input is not consumed when option "use a variable to specify the key".

Hi all.

I'm trying to trigger a list of video files uploaded from my computer locally to BA:Connected. The key names represent file titles.

The issue I'm having is that when I use a udp event to trigger the on demand state that is configured to use a variable as key it's not using the variable as key, it's still checking against the UDP input resulting in always playing the default media in the list.

I have no problem setting the variable that I want to use as key via UDP.

Any ideas to what's going wrong? 

4 comments

  • 0
    Avatar
    Josef

     

     

  • 0
    Avatar
    Bright Scripters

    Having multiple UDP Events processing the same event might the cause for the issue.

    Try it with one UDP Event first.

    Also, if a User Variable is used as key, there is no need to transition into the On Demand state with a UDP Event.

    You can capture the wildcard into media_key in a different zone, and send a zone message.

    That zone message can be generic such as "play" which would then be used to transition into the On Demand.

    I hope that helped.

  • 0
    Avatar
    Josef

    Hi, using one udp event didn't change anything for me. But taking the other approach of triggering the on demand list via zone messages worked great. Smart solution. I also like the approach of controlling the media from another zone since you can have all the udp commands on one state and send zone messages from there. I didn't think it was gonna work since the docs say "The On Demand state can only be transitioned to using input from BP900/BP200, UDP, Serial, Keyboard, or USB devices" but apparently zone messages works great.


  • 0
    Avatar
    Bright Scripters

    Good job!

    Thanks for taking the time to share your results.

Please sign in to leave a comment.