public StartRecordingResponse startRecording ( String sessionId , String recording ) { checkStringNotEmpty ( sessionId , "The parameter sessionId should NOT be null or empty string." ) ; checkStringNotEmpty ( recording , "The parameter recording should NOT be null or empty string." ) ; StartRecordingRequest request = new StartRecordingRequest ( ) . withSessionId ( sessionId ) ; InternalRequest internalRequest = createRequest ( HttpMethodName . PUT , request , LIVE_SESSION , sessionId ) ; internalRequest . addParameter ( RECORDING , recording ) ; return invokeHttpClient ( internalRequest , StartRecordingResponse . class ) ; }
Start live session recording .