B4J Question Playing a video in B4J

Mark Baars

Member
Licensed User
Longtime User
Hello,

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.

Does it exist? And where should I look for it?

Any help would be appreciated.

Thank you,

Mark
 

Mark Baars

Member
Licensed User
Longtime User
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.
 
Upvote 0

Daestrum

Well-Known Member
Licensed User
Longtime User
B4X:
…
 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
 
Upvote 0
Top