|
@@ -151,7 +151,7 @@ discard block |
|
|
block discarded – undo |
|
151
|
151
|
/** |
|
152
|
152
|
* Reset stream |
|
153
|
153
|
*/ |
|
154
|
|
- public function reset(){ |
|
|
154
|
+ public function reset() { |
|
155
|
155
|
/* |
|
156
|
156
|
* curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' |
|
157
|
157
|
* "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/[YOUR-APP-NAME]/instances/_definst_/incomingstreams/[STREAM-FILE-NAME]/actions/resetStream" |
|
@@ -160,8 +160,8 @@ discard block |
|
|
block discarded – undo |
|
160
|
160
|
* "http:\/\/127.0.0.1:8087\/v2\/servers\/_defaultServer_\/vhosts\/_defaultVHost_\/applications\/live\/instances\/_definst_\/incomingstreams\/bolton_mass\/actions\/resetStream" |
|
161
|
161
|
*/ |
|
162
|
162
|
$this->addSkipParameter('name', 1); |
|
163
|
|
- $this->restURI = $this->getHost()."/servers/".$this->getServerInstance()."/vhosts/".$this->getVHostInstance()."/applications/".$this->_applicationName."/instances/"; |
|
164
|
|
- $this->restURI .= $this->_applicationInstance."/incomingstreams/".$this->name.".stream/actions/resetStream"; |
|
|
163
|
+ $this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/" . $this->_applicationName . "/instances/"; |
|
|
164
|
+ $this->restURI .= $this->_applicationInstance . "/incomingstreams/" . $this->name . ".stream/actions/resetStream"; |
|
165
|
165
|
|
|
166
|
166
|
return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_PUT); |
|
167
|
167
|
} |
Please login to merge, or discard this patch.