Private archivo As String = dameArchivo
If archivo <> Null Then
tv.Initialize("tv")
auxiliar.AddNode(tv, xx1, yy1, xx2, yy2)
mp.Initialize("mp",archivo)
mv=jo.InitializeNewInstance("javafx.scene.media.MediaView",Array As Object(mp))
Dim e As Object = mv.CreateEventFromUI("javafx.event.EventHandler","mvError",False)
mv.RunMethod("setOnError",Array(e))
mv.RunMethod("setPreserveRatio", Array(True)) '<-- to preserve the radio
mv.RunMethod("setSmooth", Array(True))
mv.RunMethod("setFitWidth",Array(anchoPantalla))
mv.RunMethod("setFitHeight",Array(altoPantalla))
pelicula = jopeli.InitializeNewInstance("javafx.scene.layout.BorderPane", Null)
pelicula.RunMethodJO("setCenter",Array As Object(mv))
pelicula.RunMethod("setStyle", Array("-fx-border-width : 0 0 0 0"))
tv.AddNode(pelicula, xx1, yy1, anchoPantalla, altoPantalla)
Dim auxP As Pane = pelicula
tv.Top = yy1 - (tv.PrefHeight - auxP.PrefHeight) / 2
mp.Play
End If