VideoCast-Swift icon indicating copy to clipboard operation
VideoCast-Swift copied to clipboard

"publish" rtmp with azure stream server

Open mud0107 opened this issue 4 years ago • 0 comments
trafficstars

Hi.

I published rtmp to the address below, but it does not connect. Looking at the log, it handles "handshake" and disconnects.

If you try to ffmpeg to the same address, the connection is established and the date is sent live.

The url is "rtmp://d3d5aefff6d848778e025746aa4edb5e.channel.media.azure.net:1935/live/91e122f265034cb6a06cfbb0e0136b23/sktStream".

The debugging log I tested is...

============================================================================== /Users/gimhyegon_dev/lldb_commands/iap.py:166: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(response) is not 4: /Users/gimhyegon_dev/lldb_commands/iap.py:170: SyntaxWarning: "is" with a literal. Did you mean "=="? if int(response[0], 16) is 0: /Users/gimhyegon_dev/lldb_commands/yoink.py:65: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(response) is not 3: /Users/gimhyegon_dev/lldb_commands/yoink.py:69: SyntaxWarning: "is" with a literal. Did you mean "=="? if int(response[0], 16) is 0: 2021-03-02 17:13:17.618802+0900 iOS Example[4070:2065107] Metal API Validation Enabled 2021-03-02 17:13:18.027109+0900 iOS Example[4070:2065126] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSession.swift] [filter] [203] : FILTER IS : VideoCast.BasicVideoFilterBGRA 2021-03-02 17:13:19.442560+0900 iOS Example[4070:2065126] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [connectServer()] [300] : Connecting:d3d5aefff6d848778e025746aa4edb5e.channel.media.azure.net:1935, stream name:91e122f265034cb6a06cfbb0e0136b23/sktStream 2021-03-02 17:13:35.529491+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: connected 2021-03-02 17:13:35.529758+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake0 2021-03-02 17:13:35.530762+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake1s0 2021-03-02 17:13:42.225734+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake1s1 2021-03-02 17:13:46.973634+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [dataReceived()] [205] : Not enough s1 size 2021-03-02 17:13:52.406630+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake2 2021-03-02 17:13:56.962315+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshakeComplete 2021-03-02 17:14:01.490308+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [trackCommand(:)] [245] : Tracking command(1, connect 2021-03-02 17:14:01.491263+0900 iOS Example[4070:2065525] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [dataReceived()] [177] : Read from stream error:0 2021-03-02 17:14:01.491504+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: notConnected 2021-03-02 17:14:01.492703+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [deinit] [95] : RTMPSession::deinit 2021-03-02 17:14:01.492968+0900 iOS Example[4070:2065127] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Stream/StreamSession.swift] [deinit] [39] : StreamSession::deinit 2021-03-02 17:14:49.630645+0900 iOS Example[4070:2065126] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [connectServer()] [300] : Connecting:d3d5aefff6d848778e025746aa4edb5e.channel.media.azure.net:1935, stream name:91e122f265034cb6a06cfbb0e0136b23/sktStream 2021-03-02 17:14:54.560292+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: connected 2021-03-02 17:14:54.560364+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake0 2021-03-02 17:14:54.560414+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake1s0 2021-03-02 17:14:56.444028+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake1s1 2021-03-02 17:14:58.835739+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshake2 2021-03-02 17:14:58.836004+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: handshakeComplete 2021-03-02 17:14:58.836376+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [trackCommand(:)] [245] : Tracking command(1, connect 2021-03-02 17:14:58.962053+0900 iOS Example[4070:2065973] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [dataReceived()] [177] : Read from stream error:0 2021-03-02 17:14:58.962225+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Api/iOS/VCSimpleSessionImpl.swift] [startRtmpSessionInternal(url:streamKey:)] [363] : ClientState: notConnected 2021-03-02 17:14:58.962550+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Rtmp/RTMPSession.swift] [deinit] [95] : RTMPSession::deinit 2021-03-02 17:16:15.201293+0900 iOS Example[4070:2065129] [general] [/Users/gimhyegon_dev/Desktop/Projects/CudoCommunication/Streamming_Server/VideoCast-Swift/Source/Stream/StreamSession.swift] [deinit] [39] : StreamSession::deinit

==================================================================

Why is a normal live? I'm curious if it doesn't work. Please answer fast. thank

mud0107 avatar Mar 02 '21 08:03 mud0107