a1q123456 / Harmonic

A high performance and scalable RTMP live streaming application framework
MIT License
210 stars 71 forks source link

Error #9

Open Webcom-tlc opened 5 years ago

Webcom-tlc commented 5 years ago

Hello, if i try to connect with rtmp camera(android app) i have this error: System.Net.ProtocolViolationException Message: Operation is not valid due to the current state of the object. at Harmonic.Networking.Rtmp.HandshakeContext.ProcessHandshakeC2(ReadOnlySeque nce`1 buffer, Int32& consumed) in C:\Users\Administrator\Desktop\Harmonic-master \Harmonic\Networking\Rtmp\HandshakeContext.cs:line 106 at Harmonic.Networking.Rtmp.IOPipeLine.Consumer(PipeReader reader, Cancellati onToken ct) in C:\Users\Administrator\Desktop\Harmonic-master\Harmonic\Networkin g\Rtmp\IOPipeLine.cs:line 197 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationTo ken ct) in C:\Users\Administrator\Desktop\Harmonic-master\Harmonic\Hosting\RtmpS erver.cs:line 116

a1q123456 commented 5 years ago

can you provide a sample android client code? according to the exception call stack, I guess this is because client didn't send proper handshake data that was sent by server at s1 state.

Webcom-tlc commented 5 years ago

I didn't do the app, I used this: https://play.google.com/store/apps/details?id=com.miv.rtmpcamera&hl=it

Webcom-tlc commented 5 years ago

I tried also with obs studio to transmit a video but it doesn't work, in this case there are no errors but if I open the stream with VLC I don't see anything. With ffmpeg it works, but I don't see the whole video, I tried a 5 minute video and the result is a 4 minute and 20 second video. If you are interested I have created a harmonic desktop application .net core.

Webcom-tlc commented 5 years ago

anyway congratulations and thanks for the wonderful application you did

Webcom-tlc commented 5 years ago

Hello, if i publish stream with an encoder i get error 'Operation is not valid due to the current state of the object.'

Here Senza nome

a1q123456 commented 5 years ago

sorry for late, I’ll keep tracking this problem and find out the reason

Webcom-tlc commented 5 years ago

ok thank you