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);
};
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..