This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JavaFX and the fly likes How To Switch Between Multiple Videos Using One MediaView in Java FX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "How To Switch Between Multiple Videos Using One MediaView in Java FX" Watch "How To Switch Between Multiple Videos Using One MediaView in Java FX" New topic
Author

How To Switch Between Multiple Videos Using One MediaView in Java FX

domingos manuel
Greenhorn

Joined: Sep 24, 2009
Posts: 21
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...


Domingos Manuel
South Africa
skype: dm.manuel
 
 
subject: How To Switch Between Multiple Videos Using One MediaView in Java FX