Libjitisi video example failed

Hello,

I’m encountering a problem running examples of libjitsi. I’m working with libjitsi(tag:1125).

I am running Windows 10 64bit, and java 8.
the exec command line I used are:
ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3 run-example -Drun.example.name=AVReceive2 -Drun.example.arg.line="–local-port-base=10000 --remote-host=127.0.0.1 --remote-port-base=5000"

ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3 run-example -Drun.example.name=AVTransmit2 -Drun.example.arg.line="–local-port-base=5000 --remote-host=127.0.0.1 --remote-port-base=10000"

the send/recv of audio is fine, but the video in nowhere to see. Instead I got these warnings:

[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: Receive buffer size updated: 65535
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: Receive buffer size updated: 65535
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: video send resolution: 640x480
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: video send FPS: default(no restriction)
[java] September 17, 2020 3:55:34 AP net.sf.fmj.media.Log error
[java] SEVERE: Failed to realize: net.sf.fmj.media.ProcessEngine@71248c21
[java] September 17, 2020 3:55:34 AP net.sf.fmj.media.Log error
[java] SEVERE: Error: Unable to realize net.sf.fmj.media.ProcessEngine@71248c21
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] WARNING: javax.media.ResourceUnavailableEvent[source=com.sun.media.processor.unknown.Handler@442675e1,message=Failed to realize: input media not supported: AVFrame video]
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] WARNING: ControllerErrorEvent: javax.media.ResourceUnavailableEvent[source=com.sun.media.processor.unknown.Handler@442675e1,message=Failed to realize: input media not supported: AVFrame video]
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] WARNING: javax.media.ControllerClosedEvent[source=com.sun.media.processor.unknown.Handler@442675e1]
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: video codec/freq: h264/90000 Hz
[java] September 17, 2020 3:55:34 AP org.jitsi.utils.logging.LoggerImpl log
[java] INFO: video remote IP/port: 127.0.0.1/10002

I modified a few places to run the example:

1.MeidaUtils.java:
cfg.getBoolean(MediaService.ENABLE_FFMPEG_CODECS_PNAME, true )
cfg.getBoolean(MediaService.ENABLE_H264_FORMAT_PNAME, true )

both parameters are changed from false to true so that h264 would be matched during
mediaService.getFormatFactory().createMediaFormat(
encoding,
clockRate);
in AVTransmit2 and AVReceive2.

2.AVTransmit2 and AVReceive2:
In the initialize() method I added ‘continue’ so that it won’t crash when device is null
MediaDevice device
= mediaService.getDefaultDevice(mediaType, MediaUseCase.CALL);
if(device==null){
continue;
}

I looked up same issue have been mentioned in

Is there anyone know how to deal this?
Or just give me some advice how to run the example properly on windows?