public Recording getRecording ( String recordingId ) throws OpenViduJavaClientException , OpenViduHttpException { HttpGet request = new HttpGet ( OpenVidu . urlOpenViduServer + API_RECORDINGS + "/" + recordingId ) ; HttpResponse response ; try { response = OpenVidu . httpClient . execute ( request ) ; } catch ( IOException e ) { throw new OpenViduJavaClientException ( e . getMessage ( ) , e . getCause ( ) ) ; } try { int statusCode = response . getStatusLine ( ) . getStatusCode ( ) ; if ( ( statusCode == org . apache . http . HttpStatus . SC_OK ) ) { return new Recording ( httpResponseToJson ( response ) ) ; } else { throw new OpenViduHttpException ( statusCode ) ; } } finally { EntityUtils . consumeQuietly ( response . getEntity ( ) ) ; } }
Gets an existing recording