Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ThomasGugler opened this issue Aug 28, 2024 · 2 comments

Comments

@ThomasGugler
Copy link

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
Copy link

I have same problem

@DmitryYalchik
Copy link

U should to make same like on screen
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants