How To Switch Between Multiple Videos Using One MediaView in Java FX
posted 7 years ago
hi there. I am new comer to javafx. I am in love with it though. I've read many sample code and tutorials, but could not yet figure out how can I switch between two or mode video source files using two SwingButtons and only one MediaView. I do bind the Media to the String url source, and in my on replace trigger for the String url source I can successfully assign the new http:// source String to the video. What I am not being able to do is enforce that once the media player stops, it must read the new source file prior to replaying. currently it sops, and then replays the same (the old) source video file. I am in desperate need for help! please...