UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
42 lines (40 loc) 1.63 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); exports.AvatarWebRTCConnectionResult = void 0; const Exports_js_1 = require("./Exports.js"); /** * Defines the avatar WebRTC connection result. * @class AvatarWebRTCConnectionResult * Added in version 1.33.0 * * @experimental This feature is experimental and might change in the future. */ class AvatarWebRTCConnectionResult extends Exports_js_1.SynthesisResult { /** * Creates and initializes an instance of this class. * @constructor * @param {RTCSessionDescriptionInit} SDPAnswer - The SDP answer of WebRTC connection. * @param {string} resultId - The result id. * @param {ResultReason} reason - The reason. * @param {string} errorDetails - Error details, if provided. * @param {PropertyCollection} properties - Additional properties, if provided. */ constructor(SDPAnswer, resultId, reason, errorDetails, properties) { super(resultId, reason, errorDetails, properties); this.privSDPAnswer = SDPAnswer; } /** * Specifies SDP (Session Description Protocol) answer of WebRTC connection. * @member AvatarWebRTCConnectionResult.prototype.SDPAnswer * @function * @public * @returns {RTCSessionDescriptionInit} Specifies the SDP answer of WebRTC connection. */ get SDPAnswer() { return this.privSDPAnswer; } } exports.AvatarWebRTCConnectionResult = AvatarWebRTCConnectionResult; //# sourceMappingURL=AvatarWebRTCConnectionResult.js.map