B4J Question Hide Video Last Frame

embedded

Active Member
Licensed User
Longtime User
B4X:
Dim name As String
    name = "v" & question_number & ".mp4"
    Log(name)
    'mp.Initialize("mp", File.GetUri(File.DirApp, name))
    mpV.Initialize("mpV", File.GetUri(File.DirApp & "\Video" , name))
    mv=jo.InitializeNewInstance("javafx.scene.media.MediaView",Array As Object(mpV))
    MainForm.RootPane.AddNode(mv,0,0,MainForm.WindowWidth,MainForm.Height)
    mv.RunMethod("setFitWidth",Array(800.0)) 'Requires a double value, hence the decimal
    mv.RunMethod("setFitHeight",Array(600.0))
    mpV.Play

Above code Run smoothly and Play the video. But last frame is still display on the screen. I want to remove the last frame of the video. Please suggest the way..as shown in picture below
video.jpg
 

Daestrum

Expert
Licensed User
Longtime User
You could try

B4X:
mv.RunMethod("setMediaPlayer",null)
 
Upvote 0
Top