Hi
Can anyone advise please. I’m getting an error when I try to display a Live Stream via the Uwp Samples
ComponentSamples.VideoViewer and UwpSamples.VideoStreamingSample are both failing to load a live stream. I’ve tried it on 2 different Milestone systems. Milestone web client is working fine.
UwpSamples.VideoStreamingSample is firing the MediaFailed event with error “The byte stream type of the given URL is unsupported. (Exception from HRESULT: 0xC00D36C4)”
I’ve had to tweak the VideoParams slightly because the Sample was geared towards a Camera with Audio…
private static VideoParams GetRequestStreamParams(StreamParamsHelper.SignalType signalType, Guid cameraId)
{
var videoParams = new VideoParams()
{
ItemId = cameraId,
MethodType = StreamParamsHelper.MethodType.Push,
SignalType = StreamParamsHelper.SignalType.Live,
**StreamType = StreamParamsHelper.StreamType.Transcoded,**
FragmentDuration = TimeSpan.FromMilliseconds(-1000),
DestWidth = 860,
DestHeight = 640,
FPS = 25,
CompressionLvl = 71,
StreamHeaders = StreamParamsHelper.StreamHeaders.NoHeaders,
};
return videoParams;
}
The Cameras are set to H264
Any ideas/suggestions gratefully received.
Thanks