UNPKG

@dolbyio/dolbyio-rest-apis-client

Version:
25 lines (24 loc) 1.06 kB
import { StreamStopResponse } from './types/stream'; /** * Stops an active stream. * * @link https://docs.dolby.io/streaming-apis/reference/stream_stopstream * @note Prior to stopping the stream, you must call {@link disable}. * * @param apiSecret The API Secret used to authenticate this request. * @param streamId Identifier of the stream to stop. * * @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link StreamStopResponse} object. */ export declare const stop: (apiSecret: string, streamId: string) => Promise<StreamStopResponse>; /** * Stops all currently active streams associated with your account. * * @link https://docs.dolby.io/streaming-apis/reference/stream_stopbyaccount * @note Prior to stopping a stream, you must call {@link disable}. * * @param apiSecret The API Secret used to authenticate this request. * * @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link StreamStopResponse} object. */ export declare const stopAll: (apiSecret: string) => Promise<StreamStopResponse>;