Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 10x 10x 3x 10x 3x 10x | import { NestableVerb } from '../NestableVerb';
import { StreamParam } from './StreamParam';
export interface StartStreamAttributes {
name?: string;
mode?: string;
tracks?: string;
destination?: string;
destinationUsername?: string;
destinationPassword?: string;
streamEventUrl?: string;
streamEventMethod?: string;
username?: string;
password?: string;
}
/**
* @export
* @class StartStream
* @extends {NestableVerb}
* Represents a StartStream verb
*/
export class StartStream extends NestableVerb {
attributes: StartStreamAttributes;
/**
* Creates an instance of StartStream
* @param {StartStreamAttributes} attributes The attributes to add to the element
* @param {StreamParam | StreamParam[]} streamParams The stream params to add to the element
*/
constructor(attributes?: StartStreamAttributes, streamParams?: StreamParam | StreamParam[]) {
super('StartStream', undefined, attributes, streamParams);
}
/**
* Add a stream param or params to the StartStream
* @param {StreamParam | StreamParam[]} streamParams The stream param or params to add
*/
addStreamParams(streamParams: StreamParam | StreamParam[]): void {
this.nestedVerbs = this.nestedVerbs.concat(streamParams);
}
}
|