java - Javafx Mediaview settings according to scene property -


i trying change media view height , width according media player window. please tell me how can adding scene.setonzoom().

in order re-size mediaview along scene, bind fitwidthproperty , fitheightproperty of mediaview scene's widthproperty , heightproperty respectively.

mediaview.fitwidthproperty().bind(scene.widthproperty()); mediaview.fitheightproperty().bind(scene.heightproperty()); 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -