[jitsi-dev] libjitsi unknown protocol: directshow


#1

I have a problem when trying to use libjitsi with webcam. For some reason
it seems directshow is unknown protocol when trying to get local preview
for webcam video (screencapture works).

I also get same kind of directshow unknow protocol error when trying to
direct incoming mediastream to libjitsi mediaservice VideoPreviewComponent.

jndirectshow.dll has been loaded successfully.

Audio capture and playback works.

Here is some info about the situation.
This is my capture device info from webcam which I am trying to use:

preview capture dev info Integrated Webcam : directshow:Integrated
Webcam
AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame, pixFmt 1,
deviceSystemPixFmt 0x32595559
AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame, pixFmt 13,
deviceSystemPixFmt 0x47504a4d

And the actual exception I am getting is:
October 31, 2017 1:57:31 IP. javax.media.Manager createDataSource
WARNING: java.net.MalformedURLException: unknown protocol: directshow
java.net.MalformedURLException: unknown protocol: directshow
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at javax.media.MediaLocator.getURL(MediaLocator.java:75)
        at javax.media.Manager.createDataSource(Manager.java:415)
        at
org.jitsi.impl.neomedia.device.MediaDeviceImpl.createCaptureDevice(MediaDeviceImpl.java:232)
        at
org.jitsi.impl.neomedia.device.MediaDeviceImpl.getFormat(MediaDeviceImpl.java:352)
        at
fi.my_phone.standalone_softphone_jitsi.ui_components.LibJitsiVideoPanel.getMediaDevicePreviewNode(LibJitsiVideoPanel.java:232)

October 31, 2017 1:57:31 IP. org.jitsi.util.LoggerImpl log
SEVERE: Failed to create CaptureDevice from CaptureDeviceInfo Integrated
Webcam : directshow:Integrated Webcam
AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame, pixFmt 1,
deviceSystemPixFmt 0x32595559
AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame, pixFmt 13,
deviceSystemPixFmt 0x47504a4d

javax.media.NoDataSourceException
        at javax.media.Manager.createDataSource(Manager.java:419)
        at
org.jitsi.impl.neomedia.device.MediaDeviceImpl.createCaptureDevice(MediaDeviceImpl.java:232)
        at
org.jitsi.impl.neomedia.device.MediaDeviceImpl.getFormat(MediaDeviceImpl.java:352)
        at
fi.my_phone.standalone_softphone_jitsi.ui_components.LibJitsiVideoPanel.getMediaDevicePreviewNode(LibJitsiVideoPanel.java:232)

···

--
--
Jouko