Recording actions
StartRecording
Description
The StartRecording method starts a recording in proxy mode (tunnel mode is not supported by the Design API). This call is synchronous - it blocks until the recording has started.
Parameters
- Name (optional): The name of the User Path to create (the default value is "UserPath"). If the name is already used, then it is automatically renamed using a “_X” suffix, where X is an integer. If the name has invalid characters then they will be escaped as an underscore (_) and no error is thrown.
- BaseContainer (optional): The Init/Actions container where we want to start the recording (default container is Actions).
- ProtocolWebSocket (optional): Default value is “true”.
- ProtocolAdobeRTMP (optional): Default value is "false".
- UserAgent (optional)
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST example
POST http://localhost:7400/Design/v1/Service.svc/StartRecording HTTP/1.1Accept: application/jsonContent-Type:application/jsonCache-Control:nocachePragma: nocacheUser-Agent:Java/1.7.0_10Host: localhost:7400Connection: keepaliveContent-Length:276{"d": {"VirtualUser": "myVirtualUserName","BaseContainer": "Init","ProtocolWebSocket": true,"ProtocolAdobeRTMP": false,"UserAgent": null}}Use case with Command Line Designer
java -cp "api/Common/java/*;api/Design API Client/java/*" com.neotys.rest.design.client.CommandLineDesigner -designAPIURL http://localhost:7400/Design/v1/Service.svc/ -command StartRecording -VirtualUser myVU -BaseContainer Init -ProtocolWebSocket -ProtocolAdobeRTMP -UserAgent myUserAgentUse case with Java Client Designer
import com.neotys.rest.design.client.DesignAPIClient;import com.neotys.rest.design.client.DesignAPIClientFactory;import com.neotys.rest.design.model.StartRecordingParams.StartRecordingBuilder;public class Main {public static void main(String[] args) throws Exception {final String url = "http://localhost:7400/Design/v1/Service.svc";final DesignAPIClient client = DesignAPIClientFactory.newClient(url);final StartRecordingBuilder builder = new StartRecordingBuilder().virtualUser("VirtualUserName");client.startRecording(builder.build());}}Use case with C#Client
using Neotys.DesignAPI.Client;using Neotys.DesignAPI.Model;namespace Design{class StartRecording{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);client.StartRecording(new StartRecordingParamsBuilder().virtualUser("VirtualUserName").Build());}}}
Home