ADLTest.CloudeoServiceConnectivityTest.genDefConnDescr C# (CSharp) Méthode

genDefConnDescr() private méthode

private genDefConnDescr ( string scopeId ) : ConnectionDescription
scopeId string
Résultat ADL.ConnectionDescription
        private ConnectionDescription genDefConnDescr(string scopeId)
        {
            ConnectionDescription connDescr = new ConnectionDescription();
            connDescr.autopublishAudio = false;
            connDescr.autopublishVideo = false;
            connDescr.url = "dev04.saymama.com:7005/" + scopeId;
            connDescr.token = new Random().Next(1000) + "";
            connDescr.lowVideoStream.maxBitRate = 32;
            connDescr.lowVideoStream.maxWidth = 160;
            connDescr.lowVideoStream.maxHeight = 120;
            connDescr.lowVideoStream.maxFps = 5;
            connDescr.lowVideoStream.publish = true;
            connDescr.lowVideoStream.receive = true;

            connDescr.highVideoStream.maxBitRate = 500;
            connDescr.highVideoStream.maxWidth = 320;
            connDescr.highVideoStream.maxHeight = 240;
            connDescr.highVideoStream.maxFps = 15;
            connDescr.highVideoStream.publish = true;
            connDescr.highVideoStream.receive = true;

            return connDescr;
        }