简体   繁体   English

如何使用netty创建rtsp流服务器

[英]how to create rtsp stream server using netty

Pls help me to create rtsp server. 请帮助我创建rtsp服务器。 if there are any working example.. I try to netty example. 如果有任何可行的例子..我尝试netty的例子。

Link for github github链接

but display the following error, 但显示以下错误,

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.darkmi.server.config.ServerConfig; nested exception is java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:267)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:203)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:622)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:73)
    at com.darkmi.server.Main.main(Main.java:14)
Caused by: java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
    at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
    at org.springframework.core.io.support.ResourcePropertySource.loadPropertiesForResource(ResourcePropertySource.java:101)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:43)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:52)
    at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:82)
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:193)
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:149)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:135)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:260)

You need to create a resources folder in your eclipse project. 您需要在Eclipse项目中创建一个resources文件夹。 and then add that folder to your project sources. 然后将该文件夹添加到您的项目源中。 application.properties file (which contains IP/Port of RTSP server) should be located there. application.properties文件(包含RTSP服务器的IP /端口)应该位于此处。

它应该看起来像这样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM