I made a script that let me toggle between any number of videos seamlessly using CustomScriptButtons. The script basically uses two variables that let it toggle between two video channels. It loads the media referenced by the CustomScriptButton on one of the two devices and fade it in while fading out the other device and then resetting it. The problem I have is I cannot find a way to get the media duration to automatically fade out the media when it's done playing, right now if the media duration is over it freezes on the last frame and stays on it.
My solution was to get the media duration assign it to a variable and WDWait,mediaduration before fading out the corresponding device. However I cannot figure how to get this info.
At the very least I would be happy with a way to get the media to NOT freeze on the last frame and just end.
I hope I make sense, been programming for a while and my skull is numb
Thanks!