Jump to content
  • 0

Streaming to localhost and then to RTMP


Gabriel
 Share

Question

Hello, good day!

We are trying to create a stream from Unity to an Antmedia server running on the same local machine. In the same PC we have the Unity exe, the Antmedia server and a Coturn instance.

When I try to stream to the Antmedia server from any PC in the local network or from the same PC via the index.html sample, it works ok. I can see the stream getting caught and then I can manually set an RTMP key manually and see it being broadcast. This tells me that the SSL (in this case, is a self-signed certificate) is working ok.

When we send the stream from Unity, either from ws...:5080 or wss....5443, we can see that we get the endpoints, and seems to get connected. But after some seconds the AM server returns a "publisher closed", the dashboard never detects an incoming stream and it seems like nothing happens.

Any idea of what could be happening?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hello Mustafa, thank you for your answer.

Here is the Console log:

undefinedaTransport - Send buffer size: 65536 recv buffer size: 65536 so linger: -1 traffic class: 0
2022-09-20 10:24:55,088 [main] INFO  org.red5.server.ContextLoader - ContextLoader init
2022-09-20 10:24:55,097 [main] INFO  org.red5.server.ContextLoader - Loading: default.context = ${red5.root}/webapps/red5-default.xml => /usr/local/antmedia/webapps/red5-default.xml
2022-09-20 10:24:55,161 [main] INFO  org.red5.server.Context - Deployment type: bootstrap
2022-09-20 10:24:55,173 [main] INFO  org.red5.server.tomcat.WarDeployer - War deployer service created
2022-09-20 10:24:55,174 [main] INFO  org.red5.server.tomcat.WarDeployer - Starting WarDeployer
2022-09-20 10:24:55,175 [main] INFO  org.red5.server.tomcat.WarDeployer - Deploy wars without app start
2022-09-20 10:24:55,238 [main] INFO  org.red5.server.tomcat.TomcatLoader - Loading Tomcat
2022-09-20 10:24:55,238 [main] INFO  org.red5.server.tomcat.TomcatLoader - Server root: /usr/local/antmedia
2022-09-20 10:24:55,238 [main] INFO  org.red5.server.tomcat.TomcatLoader - Config root: /usr/local/antmedia/conf
2022-09-20 10:24:55,319 [main] INFO  org.red5.server.tomcat.TomcatLoader - Application root: /usr/local/antmedia/webapps
2022-09-20 10:24:55,430 [main] INFO  org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
2022-09-20 10:24:55,592 [main] WARN  o.a.c.core.AprLifecycleListener - This listener must only be nested within Server elements, but is in [Connector].
2022-09-20 10:24:55,594 [main] INFO  o.a.c.core.AprLifecycleListener - The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/local/antmedia/lib/native]
2022-09-20 10:24:55,598 [main] INFO  o.a.c.http11.Http11Nio2Protocol - Initializing ProtocolHandler ["http-nio2-0.0.0.0-5080"]
2022-09-20 10:24:55,623 [main] WARN  o.a.c.core.AprLifecycleListener - This listener must only be nested within Server elements, but is in [Connector].
2022-09-20 10:24:55,624 [main] INFO  o.a.c.http11.Http11Nio2Protocol - Initializing ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
2022-09-20 10:24:55,830 [main] INFO  o.a.catalina.core.StandardService - Starting service [Tomcat]
2022-09-20 10:24:55,830 [main] INFO  o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/8.5.73]
2022-09-20 10:24:55,894 [0.0.0.0-startStop-1] INFO  o.a.catalina.loader.WebappLoader - Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
2022-09-20 10:24:55,928 [0.0.0.0-startStop-1] INFO  o.a.catalina.startup.ContextConfig - No global web.xml found
2022-09-20 10:24:55,987 [0.0.0.0-startStop-1] INFO  o.a.c.c.C.[.[0.0.0.0].[/] - No Spring WebApplicationInitializer types detected on classpath
2022-09-20 10:24:56,012 [0.0.0.0-startStop-1] INFO  ROOT - Starting up context: root
2022-09-20 10:24:56,669 [0.0.0.0-startStop-1] ERROR o.g.j.s.s.SpringComponentProvider - Spring context lookup failed, skipping spring component provider initialization.
2022-09-20 10:24:57,174 [0.0.0.0-startStop-1] INFO  o.a.catalina.loader.WebappLoader - Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
2022-09-20 10:24:57,245 [0.0.0.0-startStop-1] INFO  o.a.c.c.C.[.[0.0.0.0].[/WebRTCApp] - No Spring WebApplicationInitializer types detected on classpath
2022-09-20 10:24:57,255 [0.0.0.0-startStop-1] INFO  ROOT - Starting up context: WebRTCApp
2022-09-20 10:24:57,347 [0.0.0.0-startStop-1] ERROR o.g.j.s.s.SpringComponentProvider - Spring context lookup failed, skipping spring component provider initialization.
2022-09-20 10:24:57,413 [0.0.0.0-startStop-1] INFO  o.a.catalina.loader.WebappLoader - Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
2022-09-20 10:24:57,451 [0.0.0.0-startStop-1] INFO  o.a.c.c.C.[.[0.0.0.0].[/LiveApp] - No Spring WebApplicationInitializer types detected on classpath
2022-09-20 10:24:57,454 [0.0.0.0-startStop-1] INFO  ROOT - Starting up context: LiveApp
2022-09-20 10:24:57,520 [0.0.0.0-startStop-1] ERROR o.g.j.s.s.SpringComponentProvider - Spring context lookup failed, skipping spring component provider initialization.
2022-09-20 10:24:57,593 [0.0.0.0-startStop-1] INFO  o.a.catalina.loader.WebappLoader - Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
2022-09-20 10:24:57,645 [0.0.0.0-startStop-1] INFO  o.a.c.c.C.[.[0.0.0.0].[/Spilly] - No Spring WebApplicationInitializer types detected on classpath
2022-09-20 10:24:57,648 [0.0.0.0-startStop-1] INFO  ROOT - Starting up context: Spilly
2022-09-20 10:24:57,717 [0.0.0.0-startStop-1] ERROR o.g.j.s.s.SpringComponentProvider - Spring context lookup failed, skipping spring component provider initialization.
2022-09-20 10:24:57,795 [main] INFO  o.a.c.http11.Http11Nio2Protocol - Starting ProtocolHandler ["http-nio2-0.0.0.0-5080"]
2022-09-20 10:24:57,801 [main] INFO  o.a.c.http11.Http11Nio2Protocol - Starting ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
2022-09-20 10:24:57,802 [main] INFO  org.red5.server.tomcat.TomcatLoader - Context initialized:  path: /usr/local/antmedia/webapps/root/
2022-09-20 10:24:57,802 [main] INFO  org.red5.server.tomcat.TomcatLoader - Spring parent context key: default.context
2022-09-20 10:24:57,803 [main] INFO  org.red5.server.tomcat.TomcatLoader - Context initialized: /WebRTCApp path: /usr/local/antmedia/webapps/WebRTCApp/
2022-09-20 10:24:57,803 [main] INFO  org.red5.server.tomcat.TomcatLoader - Spring parent context key: default.context
2022-09-20 10:24:57,803 [main] INFO  org.red5.server.tomcat.TomcatLoader - Context initialized: /LiveApp path: /usr/local/antmedia/webapps/LiveApp/
2022-09-20 10:24:57,804 [main] INFO  org.red5.server.tomcat.TomcatLoader - Spring parent context key: default.context
2022-09-20 10:24:57,804 [main] INFO  org.red5.server.tomcat.TomcatLoader - Context initialized: /Spilly path: /usr/local/antmedia/webapps/Spilly/
2022-09-20 10:24:57,804 [main] INFO  org.red5.server.tomcat.TomcatLoader - Spring parent context key: default.context
2022-09-20 10:24:57,898 [Loader:] INFO  org.red5.server.Context - Deployment type: bootstrap
2022-09-20 10:24:57,928 [Loader:] INFO  org.red5.server.scope.WebScope - Set server [Server@252f88bcmap[[empty]]]
2022-09-20 10:24:57,934 [Loader:] INFO  org.red5.server.Server - Add mapping global: default host:  context: root
2022-09-20 10:24:57,936 [Loader:] INFO  org.red5.server.scope.WebScope - Webscope already registered; remove the 'init-method' from your 'web.scope' bean to prevent this message in the future.
2022-09-20 10:24:58,034 [Loader:/WebRTCApp] INFO  org.red5.server.Context - Deployment type: bootstrap
2022-09-20 10:24:58,257 [Loader:/WebRTCApp] INFO  i.a.datastore.db.DataStoreFactory - Used Datastore:mapdb  db name:webrtcapp
2022-09-20 10:24:58,264 [Loader:/WebRTCApp] INFO  org.red5.server.scope.WebScope - Set server [Server@252f88bcmap['/root' -> 'default']]
2022-09-20 10:24:58,265 [Loader:/WebRTCApp] INFO  org.red5.server.Server - Add mapping global: default host:  context: WebRTCApp
2022-09-20 10:24:58,266 [Loader:/WebRTCApp] INFO  i.a.AntMediaApplicationAdapter - Delete the ".closed" file in WebRTCApp
2022-09-20 10:24:58,269 [Loader:/WebRTCApp] INFO  i.a.AntMediaApplicationAdapter - WebRTCApp started
2022-09-20 10:24:58,278 [vert.x-eventloop-thread-1] INFO  i.a.AntMediaApplicationAdapter - Stream source size: 0
2022-09-20 10:24:58,279 [vert.x-eventloop-thread-1] INFO  i.a.s.StreamFetcherManager - StreamFetcherSchedule job name 5
2022-09-20 10:24:58,337 [Loader:/LiveApp] INFO  org.red5.server.Context - Deployment type: bootstrap
2022-09-20 10:24:58,343 [Loader:/LiveApp] INFO  i.a.datastore.db.DataStoreFactory - Used Datastore:mapdb  db name:liveapp
2022-09-20 10:24:58,346 [Loader:/LiveApp] INFO  org.red5.server.scope.WebScope - Set server [Server@252f88bcmap['/root' -> 'default', '/WebRTCApp' -> 'default']]
2022-09-20 10:24:58,346 [Loader:/LiveApp] INFO  org.red5.server.Server - Add mapping global: default host:  context: LiveApp
2022-09-20 10:24:58,347 [Loader:/LiveApp] INFO  i.a.AntMediaApplicationAdapter - Delete the ".closed" file in LiveApp
2022-09-20 10:24:58,347 [Loader:/LiveApp] INFO  i.a.AntMediaApplicationAdapter - LiveApp started
2022-09-20 10:24:58,357 [vert.x-eventloop-thread-1] INFO  i.a.AntMediaApplicationAdapter - Stream source size: 0
2022-09-20 10:24:58,357 [vert.x-eventloop-thread-1] INFO  i.a.s.StreamFetcherManager - StreamFetcherSchedule job name 9
2022-09-20 10:24:58,409 [Loader:/Spilly] INFO  org.red5.server.Context - Deployment type: bootstrap
2022-09-20 10:24:58,415 [Loader:/Spilly] INFO  i.a.datastore.db.DataStoreFactory - Used Datastore:mapdb  db name:spilly
2022-09-20 10:24:58,418 [Loader:/Spilly] INFO  org.red5.server.scope.WebScope - Set server [Server@252f88bcmap['/root' -> 'default', '/WebRTCApp' -> 'default', '/LiveApp' -> 'default']]
2022-09-20 10:24:58,418 [Loader:/Spilly] INFO  org.red5.server.Server - Add mapping global: default host:  context: Spilly
2022-09-20 10:24:58,418 [Loader:/Spilly] INFO  i.a.AntMediaApplicationAdapter - Delete the ".closed" file in Spilly
2022-09-20 10:24:58,419 [Loader:/Spilly] INFO  i.a.AntMediaApplicationAdapter - Spilly started
2022-09-20 10:24:58,429 [vert.x-eventloop-thread-1] INFO  i.a.AntMediaApplicationAdapter - Stream source size: 0
2022-09-20 10:24:58,429 [vert.x-eventloop-thread-1] INFO  i.a.s.StreamFetcherManager - StreamFetcherSchedule job name 13
2022-09-20 10:25:55,175 [pool-4-thread-1] INFO  org.red5.server.tomcat.WarDeployer - Deploy wars with app start
2022-09-20 10:28:56,057 [http-nio2-0.0.0.0-5080-exec-1] INFO  io.antmedia.rest.RestServiceBase - Version Name 2.4.3 Version Type Community Edition
2022-09-20 10:28:56,142 [http-nio2-0.0.0.0-5080-exec-9] WARN  io.antmedia.statistic.GPUUtils - ClassNotFoundException nvml class not found org.bytedeco.cuda.global.nvml







And here the error log:

Sep 20, 2022 9:34:47 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
WARNING: This listener must only be nested within Server elements, but is in [Connector].
Sep 20, 2022 9:34:47 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/local/antmedia/lib/native]
Sep 20, 2022 9:34:47 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio2-0.0.0.0-5080"]
Sep 20, 2022 9:34:47 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
WARNING: This listener must only be nested within Server elements, but is in [Connector].
Sep 20, 2022 9:34:47 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
Sep 20, 2022 9:34:47 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Sep 20, 2022 9:34:47 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/8.5.73]
Sep 20, 2022 9:34:47 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 9:34:47 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Sep 20, 2022 9:34:47 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 9:34:48 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 9:34:48 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 9:34:49 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 9:34:49 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 9:34:49 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 9:34:49 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 9:34:49 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 9:34:49 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@6a6824be class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 9:34:49 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 9:34:49 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 9:34:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio2-0.0.0.0-5080"]
Sep 20, 2022 9:34:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
WARNING: This listener must only be nested within Server elements, but is in [Connector].
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/local/antmedia/lib/native]
Sep 20, 2022 10:24:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio2-0.0.0.0-5080"]
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
WARNING: This listener must only be nested within Server elements, but is in [Connector].
Sep 20, 2022 10:24:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/8.5.73]
Sep 20, 2022 10:24:55 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 10:24:55 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Sep 20, 2022 10:24:55 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 10:24:56 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 10:24:57 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 10:24:57 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 10:24:57 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 10:24:57 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 10:24:57 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 10:24:57 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 10:24:57 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFO: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@5c8da962 class jdk.internal.loader.ClassLoaders$AppClassLoader
Sep 20, 2022 10:24:57 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 20, 2022 10:24:57 AM org.glassfish.jersey.server.spring.SpringComponentProvider initialize
SEVERE: Spring context lookup failed, skipping spring component provider initialization.
Sep 20, 2022 10:24:57 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio2-0.0.0.0-5080"]
Sep 20, 2022 10:24:57 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-jsse-nio2-0.0.0.0-5443"]
 

Link to comment
Share on other sites

  • 0

Here is a cleaner version of this, this is exactly what happens as soon as the connection is refused:



2022-09-20 15:11:43,510 [vert.x-worker-thread-48] INFO  i.a.AntMediaApplicationAdapter - Closing broadcast stream id: stream111
2022-09-20 15:11:56,250 [vert.x-eventloop-thread-0] INFO  i.antmedia.statistic.StatsCollector - System cpu load:3 process cpu load:10 available memory: 19032252 KB used memory(RSS): 3210540 KB
2022-09-20 15:11:56,251 [vert.x-eventloop-thread-0] INFO  i.antmedia.statistic.StatsCollector - Vertx worker queue size:0 WebRTCVertx worker queue size:0
2022-09-20 15:12:07,653 [https-jsse-nio2-0.0.0.0-5443-exec-3] INFO  i.a.e.s.WebSocketLocalHandler - Web Socket opened session:11 user-agent:[websocket-sharp/1.0]
2022-09-20 15:12:07,837 [pool-67-thread-1] INFO  org.webrtc.Logging - Tag:NativeLibrary - Message:Native library has already been loaded.
2022-09-20 15:12:07,837 [pool-67-thread-1] INFO  org.webrtc.Logging - Tag:PeerConnectionFactory - Message:PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.
2022-09-20 15:12:07,837 [pool-67-thread-1] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:createAudioDeviceModule
2022-09-20 15:12:07,837 [pool-67-thread-1] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:HW NS will not be used.
2022-09-20 15:12:07,837 [pool-67-thread-1] INFO  org.webrtc.Logging - Tag:JavaAudioDeviceModule - Message:HW AEC will not be used.
2022-09-20 15:12:07,928 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 0:0:candidate:2087201215 1 udp 2122260223 192.168.1.14 49732 typ host generation 0 ufrag bJMh network-id 1::UNKNOWN
2022-09-20 15:12:07,937 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 0:0:candidate:2999745851 1 udp 2122194687 192.168.56.1 49733 typ host generation 0 ufrag bJMh network-id 2::UNKNOWN
2022-09-20 15:12:07,938 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 1:1:candidate:2087201215 1 udp 2122260223 192.168.1.14 49734 typ host generation 0 ufrag bJMh network-id 1::UNKNOWN
2022-09-20 15:12:07,939 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 1:1:candidate:2999745851 1 udp 2122194687 192.168.56.1 49735 typ host generation 0 ufrag bJMh network-id 2::UNKNOWN
2022-09-20 15:12:07,939 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 2:2:candidate:2087201215 1 udp 2122260223 192.168.1.14 49736 typ host generation 0 ufrag bJMh network-id 1::UNKNOWN
2022-09-20 15:12:07,939 [https-jsse-nio2-0.0.0.0-5443-exec-5] INFO  i.a.w.WebSocketCommunityHandler - received sdp type is offer stream111
2022-09-20 15:12:07,940 [pool-67-thread-1] ERROR io.antmedia.webrtc.adaptor.Adaptor - Add ice candidate failed for 2:2:candidate:2999745851 1 udp 2122194687 192.168.56.1 49737 typ host generation 0 ufrag bJMh network-id 2::UNKNOWN
2022-09-20 15:12:07,944 [network_thread - 5143] WARN  io.antmedia.webrtc.adaptor.Adaptor - onAddStream for stream: stream111
2022-09-20 15:12:07,947 [network_thread - 5143] WARN  io.antmedia.webrtc.adaptor.Adaptor - onCreate Success for stream: stream111
2022-09-20 15:12:07,948 [network_thread - 5143] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:initPlayout(sampleRate=16000, channels=1, bufferSizeFactor=1.0)
2022-09-20 15:12:07,949 [network_thread - 5143] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:byteBuffer.capacity: 320
2022-09-20 15:12:07,949 [network_thread - 5143] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:startPlayout(sampleRate=16000, channels=1)
2022-09-20 15:12:07,952 [network_thread - 5143] INFO  io.antmedia.webrtc.adaptor.Adaptor - set localdescription on set success  for stream111
2022-09-20 15:12:07,953 [pool-67-thread-1] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Set startTime to 1663679527953 in Audio Track executor:stream111
2022-09-20 15:12:07,954 [network_thread - 5143] WARN  io.antmedia.webrtc.adaptor.Adaptor - onIceCandidate
2022-09-20 15:12:08,284 [network_thread - 5143] WARN  io.antmedia.webrtc.adaptor.Adaptor - onIceCandidate
2022-09-20 15:12:22,981 [network_thread - 5143] INFO  io.antmedia.webrtc.adaptor.Adaptor - Ice connection state changed to FAILED so it's stopping
2022-09-20 15:12:22,981 [network_thread - 5143] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Video queue size: 0 video frame last timestamp: 0
2022-09-20 15:12:22,981 [network_thread - 5143] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Audio queue size: 1504 audio frame count: 1504
2022-09-20 15:12:22,982 [network_thread - 5143] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Scheduling stop procedure for stream: stream111
2022-09-20 15:12:22,982 [pool-67-thread-1] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Executing stop procedure for stream: stream111
2022-09-20 15:12:22,984 [network_thread - 5143] INFO  org.webrtc.Logging - Tag:WebRtcAudioTrackExternal - Message:GetPlayoutUnderrunCount
2022-09-20 15:12:22,984 [network_thread - 5143] INFO  io.antmedia.webrtc.adaptor.Adaptor - Ice connection state changed to CLOSED so it's stopping
2022-09-20 15:12:22,985 [network_thread - 5143] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Stopped already called. It's returning for stream: stream111
2022-09-20 15:12:22,994 [https-jsse-nio2-0.0.0.0-5443-exec-5] INFO  i.a.webrtc.adaptor.RTMPAdaptor - Stopped already called. It's returning for stream: stream111
2022-09-20 15:12:55,594 [pool-4-thread-1] INFO  org.red5.server.tomcat.WarDeployer - Deploy wars with app start
 

Link to comment
Share on other sites

  • 0

Ok, Update on this topic @mustafaboleken

We have two scenarios:

1) From the unity_log1  we see that:
L34: sending publish command
L73-823: gathering and candidates
L827: we receive a "publish_finished" notification from the server.
After that the stream is disposedand websockets closed.

From dashbaord_log1 we see that:
L9-13: Add Ice candidates fails x5
L15: unity_stream is created successfully

after 5 seconds:
L23: Ice connection FAILED -> stop procedure started


Then we continue to scenario 2)
Identical log to Scenario 1 up until and including line 31.

Reconnecting in in Unity produces the following in the dashboard_log2:
L40: Stream is again created successfully.
Handshake now works...?
L78-88: Receiving frames
then I stopped the stream.

Why could this be happening?

dashboard_log1.txt unity_log1.txt dashboard_log2.txt unity_log2.txt

Link to comment
Share on other sites

  • 0

We really want to help you with the the issues but to be honest we currently don't have enough resources on the Unity side unfortunately.
We are looking for some Unity developers to outsource the Unity related tasks. Even if you guys are ready and have some bandwidth we can work with you.
So if you would like to contribute to the Unity SDK, and make some sample developments, we are even ready to bear the cost for the development and pay you for it.

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...