Java Question VideoFrameAt

Status
Not open for further replies.

tariqyounis

Member
Licensed User
Longtime User
Dear All,
after taking a video I am getting an error.

VideoFrameAt:
Private Sub VideoFrameAt(dir As String, f As String, ms As Long) As Bitmap
    Dim job As JavaObject
    Dim bmp As Bitmap
    job.InitializeNewInstance("android.media.MediaMetadataRetriever",Null)
    job.RunMethod("setDataSource", Array(File.Combine(dir, f)))
    bmp = job.RunMethod("getFrameAtTime", Array(ms*1000, 3))
    Return bmp
    
End Sub
I am getting the following error
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:262)
at com.youtell.asgallery._videoframeat(asgallery.java:926)
at com.youtell.asgallery$ResumableSub_CreateAndSaveThumbnail.resume(asgallery.java:619)
at com.youtell.asgallery._createandsavethumbnail(asgallery.java:554)
at com.youtell.asgallery$ResumableSub_CacheImages.resume(asgallery.java:494)
at com.youtell.asgallery._cacheimages(asgallery.java:402)
at com.youtell.asgallery$ResumableSub_GetContent.resume(asgallery.java:231)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resumeAsUserSub(DebugResumableSub.java:48)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1770)

any advice
 

tariqyounis

Member
Licensed User
Longtime User
You are posting in the wrong forum. This forum is for developers building Java libraries.
sorry for that, and I think I posted another one to the wrong forum. Please advice where I shall post this, and can I shift it to another forum, or I have to delete this one and post a new one again
 
Status
Not open for further replies.
Top