---
title: "Example code to control remote capture"
canonical: "https://help.vicon.com/space/ShogunLive121/1253212293/Example%20code%20to%20control%20remote%20capture"
format: markdown
---
This section contains sample code that shows how to remotely start, stop or cancel a capture, as well as how to monitor a capture. These examples are extensively documented within the code and the relevant notifications are described in [Control remote capture](https://vicon-help.atlassian.net/wiki/spaces/ShogunLive121/pages/1253212255).

The examples are provided in C++ and require the *boost *library for communications.

1. **CaptureBroadcastMonitor**: shows how to monitor for and decode the capture notifications described in [Control remote capture](https://vicon-help.atlassian.net/wiki/spaces/ShogunLive121/pages/1253212255).
2. **RemoteStartStop**: shows how to package and send the packets to trigger capture start and stop.

> Macro (scroll-ignore)
> 
> > Macro (attachments)

> Macro (scroll-only)
> 
> To download these files, go to *Example code for Control remote capture*, found in the *Getting More from Vicon Shogun* in the [online documentation](https://help.vicon.com/).