0

stop audiofiles from playing how?

Hi!

I´ve made a button touch screen event, that plays a audiofile. It works fine. But, if I dont want to listen to the whole file, there is no way to stop it from finishing. Is there a command I can use so it stops playing when I press any area or just the button again?

7 comments

  • 0
    Avatar
    Monica Knutson

    Hi Roy!

    If you are using an image zone for your touchscreen menu, and an audio zone for your audio play file it can be done with an Event Listener.  

    The Event Listener would be the "home" state on the Audio zone and set to "Stop Playback" on the tickbox.  Then, you can send a zone message from the touch event(s) on the Video/Image zone.  When you tap your touchscreen button, set the Advanced tab event to Send a Zone message, for example "Play Audio 1".  

    Then on the Event Listener, set a zone message event on "Play Audio 1" to goto your Audio track state.  Add a Media end event to the audio state to go back to the listener.  Also add another zone message event to the audio state for something like "Stop Audio" which also goes back to the Event Listener.  You can send that zone message event on another touch button or some other touch area in your Video/Images zone.

    Please comment back with any questions you may have.  I'm happy to help.

    Cheers,
    Monica

  • 0
    Avatar
    Roy Casse

    Hi Monica!

     

    Thanks for helping me. first: I can´t find an Event listener. Second; Does it have to be an extra touch screen area or can I stop the playback by tapping the same area again?

  • 0
    Avatar
    Monica Knutson

    Hi Roy!

    The technical name for this asset is an Event Handler

    https://docs.brightsign.biz/display/DOC/Event+Handler

    I don't believe you can use the same touch zone to enact a second behavior unless you get a little crazy programmatically with using variables and boolean logic checks (conditional statements).  It's probably easiest to make a "stop" button touch area or change to a state with the "stop" button in place of the "play" button graphically.

    Have a great day!

    Cheers,
    Monica

     

  • 0
    Avatar
    Roy Casse

    Ok, you mean a Event handler! Fine, now I understand. I´ll have to make a stopbutton on the side of the playbutton. Not the most beatiful solution, but I will do so. Thanks for the help!

  • 0
    Avatar
    Roy Casse

    I´ve tried but I don´t think I got it. Can you send me an example of how you mean?

  • 0
    Avatar
    Monica Knutson

    Sure, I can whip up a sample.  I have a production meeting in 20 minutes but can do up a sample afterwards. Could you send me what you have so far for your presentation?   monica@digitaldesignservices.com

    Cheers,
    Monica

  • 0
    Avatar
    Monica Knutson

    Roy and I have been having an offline conversation.  Here is the sample file I sent him, as well as my comments:

    ************

    Hi Roy,
     
    I have attached a sample project for you to review.
     
    Please look at the "Advanced" tab on the Touch inputs on the menu and detail page to see the Zone Messages Sent.
     
    VIDEO / IMAGE ZONE
    - I used HDMI Audio for this Zone for audio output
    1.  On return to menu, add Zone Message "StopAudio".
    2.  On headphone icon to play audio, add Zone Message "PlayJohansson".  Remain on current state.
    3.  On headphone icon to stop audio, add Zone Message "StopAudio".  Remain on current state.
    4.  I added an idle timeout of 5 minutes in case a visitor leaves the kiosk.  You can adjust.  Add the "StopAudio" zone message to this too.
     
    AUDIO ZONE
    - I used Analog Audio for this Zone for audio output
    1.  On Event Handler, add all the zone messages for playing the audio tracks "PlayJohansson", etc.  They should go to the correct MP3 state.
    2.  On Event Handler when you double click it, make sure the "Stop Playback" YES is checked.
    3.  Add Zone Message event to all MP3 on "StopAudio" go back to Event Handler state.
    4.  Add Media End event to all MP3 to go back to Event Handler state.
     
    ***********
     
    Cheers,
    Monica
Please sign in to leave a comment.