Pelco Developer Network (PDN)

IOCCPluginReserved.cs Question

The embedded word "Reserved" is probably a clue, but need to pursue this anyway. IOCCPluginReserved contains only one method : ReservedSetDataSource(string dataSourceID, string number) and I'm wondering what the purpose for this is? I implemented the interface and monitored the method, but the host never calls it.

I would very much like to request from the host, a particular dataSourceID for a given overlay plug-in cell, and this is all I would need to show a video stream from a chosen camera programmatically. Is something like this in the OCC Plugin roadmap? Is your ASCII implementation the only way to do this now, and, can it actually be done with ASCII? If yes, and yes, where can I find the most current ASCII download (compatible with Vx 2.0+)? Thanks...

Hi there, thank you for your post!

I haven't done much support for plugins, so I did need a little time to ask a developer that is more familiar with the process for help with your post. We aren't 100% clear on what you were trying to accomplish, so he offered a few scenarios and what you might do to achieve it:

    Get a datasource id when a camera is added/removed

  • Implement IOCCPLuginOverlay
  • OCC will call on the OnVideoPlayPause method which provides the datasource id
    Get a list of datasources and pop up video in the same cell

  • Use the VX SDK to get the list of datasource ids
  • Use the PDK (Plugin development kit) and create an IOCCHostSetDatasource object and then call the SetDatasource method
    Get a list of datasources and pop up video in a different cell

  • Use the VX SDk to get the list of datasource ids
  • Create a Launch DataSource object
  • Use the PDK and create an IOCCHostGeneral object and then call LaunchContent

I've also attached several attachments that he sent with these scenarios to indicate which objects and methods he was describing - though you've probably seen them in the documentation already.

OnVideoPlayPause

SetDataSource

LaunchContent

LaunchContent2

Hello there -

We'll get these links added to the Ops Center Plugins pages. We haven't provided support to developers using these tools in the past, so please keep that in mind while working on this project: our ability to help you out will be limited.

Please navigate to the Git Hub Repositories here for what you need:

VxPDK Simple Plugin

Pelco PDK 1.3

Thanks PelcoChris, got it all downloaded and working. You did identify what I was looking for in your 2nd item: "Get a list of datasources and pop up video in the same cell. Use the VX SDK to get the list of datasource ids. Use the PDK (Plugin development kit) and create an IOCCHostSetDatasource object and then call the SetDatasource method."

Ironically, this is the only interface/class that isn't actually available in the newer PDK. Can you check with the developer and ask him for an advance copy? Thanks.

Hello there!

Thank you for posting to let us know. I did confer with another engineer earlier today and he did update the sample with the latest stuff. The GitHub repo links are updated with the latest VX SDK and PDK. The PDK is essentially one DLL - PluginHostInterfaces.dll (here).

Hopefully now you have what you need to proceed.

Edit: We are also actively working on a solution for documentation. Much of what we had for the PDK is very much out of date. Please stay tuned and keep an eye on the GitHub repository or the Plugin page here on PDN for updates.