ADL.VideoStreamDescription.toJSON C# (CSharp) Method

toJSON() private method

private toJSON ( ) : string
return string
        internal string toJSON()
        {
            return String.Format(@"{{""maxWidth: {0}, ""maxHeight"": {1},
            ""maxFps"": {2}, ""useAdaptation"": {3}}}", maxWidth, maxHeight, maxFps, lowercaseBool(useAdaptation));
        }

Usage Example

Example #1
0
        internal string toJSON()
        {
            string json = String.Format(@"{{""videoStream"": {0}, 
""autopublishVideo"": {1}, ""autopublishAudio"": {2}, ""url"": ""{3}"", ""scopeId"": ""{4}"",
""authDetails"": {5}}}", videoStream.toJSON(), lowercaseBool(autopublishVideo),
                                        lowercaseBool(autopublishAudio), url, scopeId, authDetails.toJSON());

            return(json);
        }