public function controlPlayback($playbackId, $operation)
    {
        $uri = "playbacks/$playbackId/control";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'operation' => $operation,
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function controlPlayback($playbackId, $operation)
    {
        $uri = "playbacks/$playbackId/control";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'operation' => $operation,
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function controlPlayback ( $ playbackId , $ operation ) { $ uri = "playbacks/$playbackId/control" ; try { $ this -> client -> getEndpoint ( ) -> post ( $ uri , [ 'form_params' => [ 'operation' => $ operation , ] ] ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } }
Control a playback.

@param string $playbackId Playback's id
@param string $operation (required) Operation to perform on the playback.  Allowed values: restart, pause, unpause, reverse, forward.
@throws ConflictException
@throws InvalidParameterException
@throws NotFoundException
Control a playback .