good morning everyone,
I am trying to play a movie in full screen and then I would like to write overlay text that change during playback (like subtitles).
I was able to playback the video but all the objects that I insert (ie label) seem to be behind the video and can't be seen.
Also I need to write 70% opacity text over the video.
here my code and a screenshot to better explain my goal:
Who can help me ?
thanks
Francesco
I am trying to play a movie in full screen and then I would like to write overlay text that change during playback (like subtitles).
I was able to playback the video but all the objects that I insert (ie label) seem to be behind the video and can't be seen.
Also I need to write 70% opacity text over the video.
here my code and a screenshot to better explain my goal:
fullscreen video example:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
Dim jmf As JavaObject = MainForm
Dim m As MediaPlayer
Dim stage As JavaObject = jmf.GetField("stage")
stage.RunMethod("setFullScreen", Array As Object(True))
m.Initialize("m",File.GetUri("f:\","video_test.mp4"))
stage.InitializeNewInstance("javafx.scene.media.MediaView",Array(m))
MainForm.RootPane.AddNode(stage,0,0,1920,1080)
m.Play
Label1.Text="TEXT 1234"
end sub
Who can help me ?
thanks
Francesco