diff options
author | Damian Minkov <damencho@jitsi.org> | 2008-05-20 12:54:17 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2008-05-20 12:54:17 +0000 |
commit | 5f858afdb36a31881326c06bc04d121e1b519526 (patch) | |
tree | 8d824121039991ead9419aee352c7a7f7f92298f /src/net/java/sip | |
parent | bac6ab96422104e664eb464ee939aa67a7f749a0 (diff) | |
download | jitsi-5f858afdb36a31881326c06bc04d121e1b519526.zip jitsi-5f858afdb36a31881326c06bc04d121e1b519526.tar.gz jitsi-5f858afdb36a31881326c06bc04d121e1b519526.tar.bz2 |
Add property to media service to disable video support(skip device detection)
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/media/device/JmfDeviceDetector.java | 16 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/media/MediaService.java | 7 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/media/device/JmfDeviceDetector.java b/src/net/java/sip/communicator/impl/media/device/JmfDeviceDetector.java index 55d5c58..67265e7 100644 --- a/src/net/java/sip/communicator/impl/media/device/JmfDeviceDetector.java +++ b/src/net/java/sip/communicator/impl/media/device/JmfDeviceDetector.java @@ -154,6 +154,22 @@ public class JmfDeviceDetector logger.debug("No FMJ javasound detected: " + exc.getMessage()); } + String disableVideoObj = (String) MediaActivator. + getConfigurationService().getProperty( + MediaServiceImpl.DISABLE_VIDEO_SUPPORT_PROPERTY_NAME); + + // video is enabled by default + boolean disableVideo = false; + if (disableVideoObj != null) + { + disableVideo = Boolean.valueOf(disableVideoObj) + .booleanValue(); + } + + // if video is disabled skip device detection + if(disableVideo) + return; + // Try to configgure capture devices for any operating system. //those that do not apply will silently fail. logger.info("Looking for video capture devices"); diff --git a/src/net/java/sip/communicator/service/media/MediaService.java b/src/net/java/sip/communicator/service/media/MediaService.java index 0be0478..f3a7b94 100644 --- a/src/net/java/sip/communicator/service/media/MediaService.java +++ b/src/net/java/sip/communicator/service/media/MediaService.java @@ -54,6 +54,13 @@ public interface MediaService * new random port). */ public static final int BIND_RETRIES_DEFAULT_VALUE = 50; + + /** + * With this property video support can be disabled + * (enabled by default). + */ + public static final String DISABLE_VIDEO_SUPPORT_PROPERTY_NAME + = "net.java.sip.communicator.service.media.DISABLE_VIDEO_SUPPORT"; /** * Give an array of Strings containing audio formats in the order of |