Exemple #1
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            RtpStreamConfiguration cfg = (RtpStreamConfiguration)config;

            if (cfg != null)
            {
                RtpStream4 source = new RtpStream4();

                source.VideoSource     = cfg.source;
                source.VideoDest       = cfg.dest;
                source.SSRC            = cfg.ssrc;
                source.VideoPort       = cfg.video_port;
                source.AudioPort       = cfg.audio_port;
                source.VideoCodec      = cfg.video_codec;
                source.AudioCodec      = cfg.audio_codec;
                source.VideoSizeWidth  = cfg.video_width;
                source.VideoSizeHeight = cfg.video_height;
                source.VideoQuality    = cfg.video_quality;

                return((VsICoreProvider)source);
            }
            return(null);
        }
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            RtpStreamConfiguration cfg = (RtpStreamConfiguration)config;

            if (cfg != null)
            {
                RtpStream4 source = new RtpStream4();

                source.VideoSource = cfg.source;
                source.VideoDest = cfg.dest;
                source.SSRC = cfg.ssrc;
                source.VideoPort = cfg.video_port;
                source.AudioPort = cfg.audio_port;
                source.VideoCodec = cfg.video_codec;
                source.AudioCodec = cfg.audio_codec;
                source.VideoSizeWidth = cfg.video_width;
                source.VideoSizeHeight = cfg.video_height;
                source.VideoQuality = cfg.video_quality;

                return (VsICoreProvider)source;
            }
            return null;
        }