我希望在另一个应用程序 (OBS) 使用设备时控制网络摄像头的设置(主要是焦点)。
是否可以?
我已经在 UWP 中尝试过这个示例,虽然我能够通过一些修改来控制相机的焦点,但它仅在获得对相机的完全访问权限时才允许进行该控制,而如果我先打开 OBS,则无法进行该控制。
我的相机是 Logitech C920,使用通用 Windows 驱动程序(不是 Logitech 驱动程序)
目前我可以使用网络摄像头属性窗口更改这些值,但我最终想制作一个物理控制器来更改它(但我现在不担心这部分!)
目前我遇到了一个问题,我一直在进行大量搜索,但仍未找到答案。
问题的背景:我们在一个 URL 上有多个 DB 模式,包括模式的测试副本(例如,schema1、schema2、schema1_test、schema2_test 都在同一个 URL)。我正在尝试通过属性文件使每个架构的哪个版本使用可配置。
我们正在使用 Spring 和 mybatis,不幸的是我对这两个都是新手(所以请原谅我的无知或我在描述问题时犯的任何错误!)
所以在我的 spring 配置文件中,它存储在 /src/main/resources 下,我有以下片段:(我只添加了“configLocation”属性,后来添加了“sqlSessionFactoryBeanName”属性)
<!-- define the SqlSessionFactory -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="typeAliasesPackage" value="com.example.domain" />
<property name="configLocation" value="classpath:mybatisConfig.xml" />
</bean>
<!-- scan for mappers and let them be autowired -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.example.something.persistence" />
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
</bean>
Run Code Online (Sandbox Code Playgroud)
我的mybatisConfig.xml(存放在/src/main/resources下,应该在类路径下)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<properties resource="sqlmapconfig.properties" />
</configuration>
Run Code Online (Sandbox Code Playgroud)
sqlmapconfig.properties(在同一文件夹中)
schema1=schema1_test
Run Code Online (Sandbox Code Playgroud)
我尝试在 …