Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

domingos manuel
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!