Enable adaptive streaming in .NET Framework mobile live sample

Hello,

I’m trying to use adaptive streaming in C# version of mobile LiveSample

(https://github.com/milestonesys/mipsdkmobile-samples-dotnet/tree/main/.NET%20Framework)

I have modified login step providing login params like this:

LoginParams loginParams = new LoginParams()
{
  SupportsAdaptiveStreaming = true
}
connection.LogIn(loginSettingsParams, loginParams, TimeSpan.FromSeconds(15));

Is such setting enough? How should modify it instead to enable adaptive streaming?

Moreover, how I should modify stream request step to select secondary or tertiary stream?

Hi Adriano!

What you did should be enough, given that server-side configuration of your camera is correct (I just tested it and it works).

FormLiveResize method in the sample already passes the new DestWidth/DestHeight when form is resized, so the server provides the best stream according to size.

Regarding secondary stream - this is currently not possible via Mobile server. You always get the primary stream when Adaptive streaming is off. And you get the best-sized stream when Adaptive streaming is on.

Br,

Nikolay