What's the purpose of the src* parameters?

In RequestStream calls, there’s srcHeight, srcWidth, srcLeft, srcRight, srcTop, and srcBottom. The documentation doesn’t say why I should ever need to send the first two (surely the Milestone server itself knows this better than I) nor what the last four are for (cropping?).

Hi Richard,

You are right - srcLeft, srcRight, srcTop, and srcBottom are indeed for server-side cropping in Transcoded mode (not applicable in FragmentedMP4 mode where clients always receive the whole data).

They can be used to reduce the bandwidth usage when you’re not needing the whole image (e.g. when picture is zoomed). Of course you can omit them and crop the image yourself, just like WebClient does.

If you decide you want to use them, it may become tricky.

Their values represent which part of the image you want to crop and receive, and should be between 0 and previously-obtained dimensions of the stream.

You need to simultaneously provide proper values of DestWidth and DestHeight (equal to the actual size of your video player multiplied by the zoom factor).

You don’t need to provide srcHeight and srcWidth. I believe we can remove them altogether from the protocol.

Br,

Nikolay

Thanks Nikolay