assurance-tunnel
assurance-tunnel
assurance-tunnel
assurance-tunnel

[SOLVED] Broadcaster/Listener Actors & Media File Name



  • I have connected the Get Media File Name actor to a Broadcaster actor on channel 500(data type set to string). The Listener actor on channel 500(data type to text) is not receiving the media file name. Is there a mismatch in the data type setting I am using? I tried all the data type possibilities available and still no success. What am I missing? Thank you.


  • Tech Staff

    @bill-cottman said:

    I have connected the Get Media File Name actor to a Broadcaster actor on channel 500(data type set to string). The Listener actor on channel 500(data type to text) is not receiving the media file name. Is there a mismatch in the data type setting I am using? I tried all the data type possibilities available and still no success. What am I missing? Thank you.

    I have no issue doing this. Try doing it with a fresh broadcaster and listener right next to each other. 

    Are you perhaps using channel 500 for something else as well? This would cause a conflict that would produce inconsistent behavior.

    Another possibility is that you have the listener in one Scene, the broadcaster in another Scene and one of the Scenes isn't active maybe?

    Best wishes,

    Woland



  • @Woland Interesting, now it works. I changed nothing. Thank you. 



  • @woland The broadcaster/listener works outside of my user actor. When I put in back inside the user actor I'm building the user input data type must be set to string to allow the connection to the get media actor that is outside the user actor. Now the listener actor which is inside another user actor does not receive the media file name. There seems to be a data type incompatibility.


  • Tech Staff

    @bill-cottman said:

    @woland The broadcaster/listener works outside of my user actor. When I put in back inside the user actor I'm building the user input data type must be set to string to allow the connection to the get media actor that is outside the user actor. Now the listener actor which is inside another user actor does not receive the media file name. There seems to be a data type incompatibility.

    It's a question of the order in which you mutate things, not incompatibility.

    User Inputs and User Outputs mutate to match the data type of the first thing they're connected to inside the User Actor/Macro. This means if you want to pass text, the first thing you connect the User Input/Output to should have the text data type. Like this:

    Broadcaster: 

    Listener:



  • @woland  Thank you. Mutability! The data type is determined by the first thing connected to it inside the user actor. Got it working 100%. Thank you.


  • Tech Staff

    @bill-cottman

    No problem. Mutability gets a bit tricky where User Actors/Macros are involved. Once you know the trick about forcing things to mutate, it's easy though.

    Best wishes,

    Woland