BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
722 stars 286 forks source link

Only Audio {RtspClientSharp.RawFrames.Audio.RawAACFrame} received, no Video #140

Open ThomasGugler opened 2 months ago

ThomasGugler commented 2 months ago

Describe the bug FrameReceived only receives Audio, no Video.

To Reproduce Steps to reproduce the behavior: Added nuget package (v1.3.3) and trying out the sample code:

`using RtspClientSharp; using System.Net; using RtspClientSharp.RawFrames.Audio; using RtspClientSharp.RawFrames.Video;

var token = new CancellationTokenSource().Token; var serverUri = new Uri("rtsp://localhost:8554/live.stream"); var credentials = new NetworkCredential("admin", "123456"); var connectionParameters = new ConnectionParameters(serverUri); // , credentials); connectionParameters.RtpTransport = RtpTransportProtocol.TCP; using var rtspClient = new RtspClient(connectionParameters); rtspClient.FrameReceived += (sender, frame) => { Console.WriteLine(frame); };

await rtspClient.ConnectAsync(token); await rtspClient.ReceiveAsync(token);`

=> vlc player plays the video..

DmitryYalchik commented 2 weeks ago

I have same problem