我试过HTTP Ogg/Theora并且可以使用Chrome,但不适用于Firefox 7.
VLC配置:
为了测试,我一直在使用以下vlc命令行配置来流式传输桌面:
vlc.exe屏幕://:screen-fps = 30:screen-caching = 100:sout = #transcode {vcodec = theo,vb = 800,scale = 1,width = 800,height = 600,acodec = none}: http {mux = ogg,dst =:8181/desktop}:no-sout-rtp-sap:no-sout-standard-sap:ttl = 1:sout-keep
HTML5视频标签配置:
<video id="video" src="http://my_host_name:8181/desktop" type="video/ogg; codecs=theora" autoplay="autoplay"/>
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
考虑典型的DBUnit Spring Test(请参阅https://github.com/springtestdbunit/spring-test-dbunit):
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
"classpath:/META-INF/spring/applicationContext-database.xml",
"classpath:spring-*.xml"
})
@TestExecutionListeners({ DependencyInjectionTestExecutionListener.class,
DirtiesContextTestExecutionListener.class,
TransactionalTestExecutionListener.class,
DbUnitTestExecutionListener.class })
@DatabaseSetup("/dbunit/data.xml")
public class UnitTest {
@Autowired
private UnitUnderTest uut;
@Test
public void shouldInitDB() {
...
}
}
Run Code Online (Sandbox Code Playgroud)
我已经验证的是,并且预计,自动装配将在DatabaseSetup之前发生.这必须发生,因为DBUnit依赖于应用程序上下文来提供配置的数据源.
问题是UnitUnderTest bean有一个@PostConstruct,它从DB加载一些数据但是,由于自动装配发生在DBunit设置之前,因此在这个阶段数据将不可用.
关于如何以干净的方式解决这个问题的任何想法?