public void updateStreamPresets ( UpdateStreamPresetsRequest request ) { checkNotNull ( request , "The parameter request should NOT be null." ) ; checkStringNotEmpty ( request . getDomain ( ) , "Domain should NOT be empty." ) ; checkStringNotEmpty ( request . getApp ( ) , "App should NOT be empty" ) ; checkStringNotEmpty ( request . getStream ( ) , "Stream should NOT be empty." ) ; // presets can be null for letting stream to use domain's presets, // so no need to check if presets is null InternalRequest internalRequest = createRequest ( HttpMethodName . POST , request , LIVE_DOMAIN , request . getDomain ( ) , LIVE_APP , request . getApp ( ) , LIVE_STREAM , request . getStream ( ) ) ; internalRequest . addParameter ( "presets" , null ) ; invokeHttpClient ( internalRequest , AbstractBceResponse . class ) ; }
Update stream s presets in the live stream service