Retrieve Raw Streams

Hello,

I am trying to use RawVideoSource and RawLiveSource classes but I get exceptions when I call Init method :

L’exception System.Exception n’a pas été gérée

HResult=-2146233088

Message=Not Implemented in this Environment

Source=VideoOS.Platform

StackTrace:

   à VideoOS.Platform.Util.InternalCommandService.ImageExporterConnect(FQID deviceFQID, String media, Boolean requestSignatures)

   à VideoOS.Platform.Data.RawVideoSource.Init()

   à CameraStreamResolution.Program.GetRes() dans [C:\\ESI\\GIT\\R1Protocols\\Src\\Milestone\\lastSDK\\MIPSDK\\ComponentSamples\\CameraStreamResolution\\Program.cs](file:C:/ESI/GIT/R1Protocols/Src/Milestone/lastSDK/MIPSDK/ComponentSamples/CameraStreamResolution/Program.cs):ligne 268

   à CameraStreamResolution.Program.Main(String\[\] args) dans [C:\\ESI\\GIT\\R1Protocols\\Src\\Milestone\\lastSDK\\MIPSDK\\ComponentSamples\\CameraStreamResolution\\Program.cs](file:C:/ESI/GIT/R1Protocols/Src/Milestone/lastSDK/MIPSDK/ComponentSamples/CameraStreamResolution/Program.cs):ligne 70

-—

L’exception VideoOS.Platform.MIPException n’a pas été gérée

HResult=-2146233088

Message=Could not connect to server

Source=VideoOS.Platform

StackTrace:

   à VideoOS.Platform.Live.RawLiveSource.Init()

   à CameraStreamResolution.Program.GetResLive(Guid streamid) dans [C:\\ESI\\GIT\\R1Protocols\\Src\\Milestone\\lastSDK\\MIPSDK\\ComponentSamples\\CameraStreamResolution\\Program.cs](file:C:/ESI/GIT/R1Protocols/Src/Milestone/lastSDK/MIPSDK/ComponentSamples/CameraStreamResolution/Program.cs):ligne 387

   à CameraStreamResolution.Program.GetDefaultStream() dans [C:\\ESI\\GIT\\R1Protocols\\Src\\Milestone\\lastSDK\\MIPSDK\\ComponentSamples\\CameraStreamResolution\\Program.cs](file:C:/ESI/GIT/R1Protocols/Src/Milestone/lastSDK/MIPSDK/ComponentSamples/CameraStreamResolution/Program.cs):ligne 322

   à CameraStreamResolution.Program.Main(String\[\] args) dans [C:\\ESI\\GIT\\R1Protocols\\Src\\Milestone\\lastSDK\\MIPSDK\\ComponentSamples\\CameraStreamResolution\\Program.cs](file:C:/ESI/GIT/R1Protocols/Src/Milestone/lastSDK/MIPSDK/ComponentSamples/CameraStreamResolution/Program.cs):ligne 72

-----

I have used the SDK 2017 R1, my VMS are :

- Milestone XProtect Enterprise 8.1a (96231)

and

- Xprotect Corporate 2014 Test

The Jpeg equivalent are OK ie JPEGLiveSource and JPEGVideoSource.

I notice also that I am not able to retrieve stream when I am using StreamDataSource.

If looking into the MIP logs (“[C:\ProgramData\Milestone\MIPSDK\MIP20170609.log](file:C:/ProgramData/Milestone/MIPSDK/MIP20170609.log)”) you might see-

2017-06-09 10:56:37.543 Error: LiveVideoRawConnect ():Not working: Did you initialize the VideoOS.Platform.SDK.Media.Environment?

When using RawLiveSource you will have to use VideoOS.Platform.SDK.Media.Environment.Initialize();

When using RawVideoSource you will have to use VideoOS.Platform.SDK.Export.Environment.Initialize();

Add both lines to your code.

Anticipating what you might see next.. When looking at the LiveContentEventHandler you will have to use LiveContentRawEventArgs (compared to the original CameraStreamResolution sample using LiveContentEventArgs)

Yes I forgot !

thanks a lot !

Does RawLiveSource work with Federation? Can I pull raw streams from Federated Sites?

Any limitations?

Thanks

No limitations. We have just answered this question too - https://developer.milestonesys.com/s/question/0D53X0000A5RcttSQC/does-rawlivesource-work-with-federated-architecture