Can Renderstreaming work from Android to a browser ?

Im investigating if its possible to use renderstreaming to send video output of an app to a browser. It looks like it should all work, but during signalling the connection is disconnecting just before it usually will stream video, Did you try if this direction works in general ? Android Unity App => Browser ?
If yes, would this always have worked or is this a more recent feature ?

Android Unity app → Browser should work. What’s the problem do you have?

Basically not clear why it does not fully go into connected state / or does not start streaming the image.
The application works correctly on x86.
Could the videostreamsender “Screen” vs Camera vs Texture provide further hints what is going wrong?
on Android it seems that logcat does not really show all error messages.
When using the android project in the editor the application works correctly and connects fully and also starts streaming video.

I have also tried to start a conversation with you to provide further detail.

There are frequently problems that mobile device can’t connect the signaling server because of a wrong URL.
You can check the log on the signaling server.

Another possible cause is that two peers are not in the same local network. Please check the network connection of each peers.

In this case signalling does not seem to be the issue , the signalling stops before going from signallingstate “stable” to connected, and the connection is disconnected at the moment when the video track is created and would normally start sending video. May be libwebrtc crashes at this moment. After that i cannot make a connection to the process anymore.

Crash?
Can you share me the crash log?

I was able to reproduce the same behavior on a different (more standard) android phone (Pixel 5)
it does the signaling part and then it seems to never transistion to stable connected state but then disconnects. not quite clear to me why. I believe errors may not be showing up in logcat properly.

10-10 14:42:37.062 13476 13496 W Unity   : [impolite-PeerConnection ConnectionState:New IceConnectionState:New SignalingState:Stable GatheringState:New] this candidate can't accept on state.
10-10 14:42:37.062 13476 13496 W Unity   : Unity.RenderStreaming.PeerConnection:OnGotIceCandidate(RTCIceCandidate)
10-10 14:42:37.062 13476 13496 W Unity   : Unity.RenderStreaming.SignalingManagerInternal:OnIceCandidate(ISignaling, CandidateData)
10-10 14:42:37.062 13476 13496 W Unity   : Unity.RenderStreaming.Signaling.OnIceCandidateHandler:Invoke(ISignaling, CandidateData)
10-10 14:42:37.062 13476 13496 W Unity   : System.Threading.SendOrPostCallback:Invoke(Object)
10-10 14:42:37.062 13476 13496 W Unity   : UnityEngine.WorkRequest:Invoke()
10-10 14:42:37.062 13476 13496 W Unity   : UnityEngine.UnitySynchronizationContext:Exec()
10-10 14:42:37.062 13476 13496 W Unity   :
10-10 14:42:37.154 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"candidate","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","candidate":"candidate:2695578307 1 udp 212
2262783 2a00:79e1:abc:130a:9cc2:16ff:feac:6832 54688 typ host generation 0 ufrag RDoB network-id 4 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
10-10 14:42:37.155 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"candidate","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","candidate":"candidate:4228208662 1 udp 212
2194687 192.0.0.4 60702 typ host generation 0 ufrag RDoB network-id 3 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
10-10 14:42:37.189 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"answer","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","sdp":"v=0\r\no=- 8198650543852456850 2 IN IP4
127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 33061 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 104.133.2.97\r\na=candidate:2695578307 1 udp 2122262783 2a00:79e1:abc:130a:9cc2:16ff:fe
ac:6832 54688 typ host generation 0 network-id 4 network-cost 10\r\na=candidate:4228208662 1 udp 2122194687 192.0.0.4 60702 typ host generation 0 network-id 3 network-cost 10\r\na=candidate:276252384 1 udp 1685987071 104.133.2.97 33061 typ srflx radd
r 192.0.0.4 rport 60702 generation 0 network-id 3 network-cost 10\r\na=ice-ufrag:RDoB\r\na=ice-pwd:HQCMh72DwO1BIEw72rm7GUQY\r\na=ice-options:trickle\r\na=fingerprint:sha-256 C5:FD:42:6D:CC:83:C9:CE:C0:BF:36:EB:8E:CB:7A:52:79:15:71:7F:43:48:14:24:0A:smile:
C:7B:8C:54:11:75:1A\r\na=setup:active\r\na=mid:0\r\na=sctp-port:50
10-10 14:42:37.193 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"candidate","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","candidate":"candidate:276252384 1 udp 1685
987071 104.133.2.97 33061 typ srflx raddr 192.0.0.4 rport 60702 generation 0 ufrag RDoB network-id 3 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
10-10 14:42:37.256 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"offer","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","sdp":"v=0\r\no=- 8198650543852456850 3 IN IP4
127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1 2\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 33061 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 104.133.2.97\r\na=candidate:2695578307 1 udp 2122262783 2a00:79e1:abc:130a:9cc2:16ff
:feac:6832 54688 typ host generation 0 network-id 4 network-cost 10\r\na=candidate:4228208662 1 udp 2122194687 192.0.0.4 60702 typ host generation 0 network-id 3 network-cost 10\r\na=candidate:276252384 1 udp 1685987071 104.133.2.97 33061 typ srflx r
addr 192.0.0.4 rport 60702 generation 0 network-id 3 network-cost 10\r\na=candidate:3731136603 1 tcp 1518283007 2a00:79e1:abc:130a:9cc2:16ff:feac:6832 55197 typ host tcptype passive generation 0 network-id 4 network-cost 10\r\na=candidate:2194324110
1 tcp 1518214911 192.0.0.4 35759 typ host tcptype passive generati
10-10 14:42:37.258 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"candidate","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","candidate":"candidate:3731136603 1 tcp 151
8283007 2a00:79e1:abc:130a:9cc2:16ff:feac:6832 55197 typ host tcptype passive generation 0 ufrag RDoB network-id 4 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
10-10 14:42:37.258 13476 13496 I Unity   : Signaling: Sending WS data: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"candidate","data":{"connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","candidate":"candidate:2194324110 1 tcp 151
8214911 192.0.0.4 35759 typ host tcptype passive generation 0 ufrag RDoB network-id 3 network-cost 10","sdpMid":"0","sdpMLineIndex":0}}
10-10 14:42:37.285 13476 13556 I Unity   : Signaling: Receiving message: {"from":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27","to":"","type":"answer","data":{"sdp":"v=0\r\no=- 9054593249515414712 3 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1 2\r
\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 52573 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 104.133.2.82\r\na=candidate:314291584 1 udp 2113937151 96138760-d008-41b4-8905-254d9c1a6b7b.local 50530 typ host generation 0 network-c
ost 999\r\na=candidate:2229027208 1 udp 2113939711 3dc5c8bd-ccd0-48eb-9aae-b79e13d2454e.local 50531 typ host generation 0 network-cost 999\r\na=candidate:2694377140 1 udp 1677729535 104.133.2.82 52573 typ srflx raddr 0.0.0.0 rport 0 generation 0 netw
ork-cost 999\r\na=candidate:4266011780 1 udp 1677732095 2620:15c:280::25b3:b223:6f95:5f73 50531 typ srflx raddr :: rport 0 generation 0 network-cost 999\r\na=ice-ufrag:wZu5\r\na=ice-pwd:gOGrs0z1fjeQPmHHZ8VZqFg+\r\na=ice-options:trickle\r\na=fingerpri
nt:sha-256 2A:23:B9:25:58:A8:08:66:2C:67:02:6F:86:1D:FC:63:56:1B:9
10-10 14:42:58.347 13476 13557 I Unity   : Signaling: Receiving message: {"type":"disconnect","connectionId":"3e8c0fe6-4fd7-45b8-a28a-b872d9e2dc27"}

Is it related to this issue ?