[FAQ] Example BVMS SDK scriplet to receive and react on server events
- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Question
Is there a script example to implement event receiver in BVMS SDK scriplet?
System overview:
- BVMS
Expected result:
Control Operator Client, whenever a Virtual Input changes state (either ON->OFF or vice-versa).
Example:
- When Virtual Input (any) is open- some action follows in Op Client
OR - When Virtual Input (any) is closed, some action follows
Answer
- First, we recommend you to check the document BVMS-SDK help.pdf and in particular the example executable: "Example executable 8: Control Operator Client in response to a Virtual Input Data event and read out the data" from this article
Concept for you to use:
- In BVMS OC use scriplet, that registers for Events (ex. Virtual Input)
- filter the events and reacts (changes the layout, calls a Favorite, etc.) on particular event
Please find below an example of script that can be used:
// ScriptType: ClientScript // ScriptLanguage: CS using System; [BvmsScriptClass()]
// ImagePane ipPane1 = new ImagePane(1, 1); public ClientScript(IClientApi api) [Scriptlet("f52c4b76-9b1d-4fd2-abb4-617249d3fe7f")] } } } } |
Note: This is simplified and generalized example, that could be helpful in building a particular tailored script.
🚩 Info:
Q: What is the maximum number of receivers?
A: There is no hard limit, but one should take into the account the size of the installation and the expected server load.