src/api/PlaybacksAPI.js
/**
   * POST /playbacks/{playbackId}/control
   *
   * Perform an operation on the specified playback.
   *
   * @param {object} params
   * @param {string} params.playbackId The unique identifier of the playback
   *  to perform an operation on.
   * @param {string} params.operation The operation to perform on the playback.
   *  Allowed values: 'restart', 'pause', 'unpause', 'reverse', 'forward'
   * @returns {Promise} Resolves when the operation is completedly successfully.
   *  Rejects if the provided operation parameter is invalid (status 400), the
   *  specified playback cannot be found (status 404), or when the operation
   *  cannot be performed on the playback in it's current state (status 409).
   */
POST /playbacks/{playbackId}/control
Perform an operation on the specified playback.

@param {object} params
@param {string} params.playbackId The unique identifier of the playback
to perform an operation on.
@param {string} params.operation The operation to perform on the playback.
POST / playbacks / { playbackId } / control Perform an operation on the specified playback . @param { object } params @param { string } params . playbackId The unique identifier of the playback to perform an operation on . @param { string } params . operation The operation to perform on the playback .
control(params) {
    const { playbackId, operation } = params;
    const id = encodeURIComponent(playbackId);
    return this._request({
      method: "POST",
      url: `${this._baseUrl}/playbacks/${id}/control`,
      params: { operation },
    });
  }
control ( params ) { const { playbackId , operation } = params ; const id = encodeURIComponent ( playbackId ) ; return this . _request ( { method : "POST" , url : ` ${ this . _baseUrl } ${ id } ` , params : { operation } , } ) ; }
POST /playbacks/{playbackId}/control
 Perform an operation on the specified playback.
POST / playbacks / { playbackId } / control Perform an operation on the specified playback .