madman411 Posted May 24, 2015 Posted May 24, 2015 Hi all I have placed a short chime WAV file inside an interactive global container field which needs to play when a script trigger runs a "Done" script. I have placed the field off the layout so it's hidden from the user. When the client changes the status of an event to "done" the script fires, updating the necessary fields and plays the chime sound before closing the popover. Now, if I have just entered the layout or come into browse mode, the script executes flawlessly and plays the media on the first run, however if I go to run the script again on another event the sound doesn't play unless I navigate off the screen and back or enter layout mode and return to browse mode and then attempt to run the script AGAIN. I have attempted to script an object refresh and a window refresh at the end of the script and this doesn't seem to do the trick... I even set an Exit Script step to see if that would reset the media file and that didn't do it. Is there a way to make this file play at any time it's called for, and not only when the screen is "new"? The file won't play at any instance unless I have "Start Playback Automatically" selected.
madman411 Posted May 24, 2015 Author Posted May 24, 2015 Ok, I managed to get it working by freezing the window and adding a "Go To Layout" and then returning the user back to the original layout and THEN play the sound... quite a handful to get a sound to play, but it works.
Agnes Riley Posted May 25, 2015 Posted May 25, 2015 If you open a browser window and navigate to a web site that has a YouTube video set to autoplay it starts playing every time you load the window (load first time or reload). So I think this is expected behavior. Instead of a chime why not script a nice "done" notification with Growl, for example. If you're on the Mac. Those can just fade away.
Recommended Posts
This topic is 3469 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now