• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to stop WebEngine after closing stage JavaFX?  RSS feed

 
Ivan Nordgaimer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i create new stage with WebEngine that playing video from YouTube, after i close it - Youtube keeps playing on backgroung. If i use "Platform.exit" - its close all my JavaFX App, but i want to close only stage that been created for YouTube.

This is my class for YouTube player:


My Youtube player stage is creating after i clicking on button in 'mainstage':

Please help!
 
John Damien Smith
Ranch Hand
Posts: 351
21
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question was asked and answered on StackOverflow:
How to stop WebEngine after closing stage JavaFX?

Answer was:
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for spotting the crosspost and actually re-porting the answer here!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!