I am looking for a way to play full motion video in my B4J application (mp4 or ogv). I have searched the forums and found information on libraries for B4A and B4I but none for B4J.
Thank you Daestrum, I did look at that but the documentation said the control can be used for playing audio files and I did not see any video-related methods. Maybe I missed something, will have another look at MediaPlayer.
…
Dim m As MediaPlayer
Dim mv As JavaObject
m.Initialize("m",File.GetUri("yourVideoDirectory","yourVideoFile.mp4"))
mv.InitializeNewInstance("javafx.scene.media.MediaView",Array(m))
MainForm.RootPane.AddNode(mv,10,10,-1,-1)
m.Play