How to stop start and pause live camera stream video

I am working on the project in which I want to stop start and pause live camera stream.

Thanks in Advance

You can’t control feed-start and feed-stop through MIP SDK directly, but you can control it indirectly. See following instructions;

  1. Disable a default rule called “Default Start Feed Rule” in Management Client.

  2. Make two new User-defined Events, one is “feed start” another is “feed stop”.

3. Make a new rule; Start action on User-defined event (feed start) start feed your camera. Perform stop action on User-defined event (feed stop).

  1. Trigger these User-defined Events via MIP SDK.

This article might be interesting for you - Triggers Message - User-defined events -

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_events.html&tree=tree_search.html?search=user-defined

In the Configuration Access Via SDK sample (the trigger button) you can see how to use and trigger a user-defined event.

https://doc.developer.milestonesys.com/html/index.html?base=samples/configaccess_sample.html&tree=tree_2.html

Thanks for your replay Is there is any sample code that create User define Events on feed start and feed stop so it is more help full for me

No, there isn’t unfortunately. You can create the user-defined events manually in the Management Client or by code using the configuration API. The rules cannot be created by the Configuration API at this time, this has to be done manually in the Management Client.