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

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

                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);
        }
Example #2
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            RtpStreamConfiguration cfg = (RtpStreamConfiguration)config;

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

                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;
        }