Exemplo n.º 1
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            RtpStreamConfiguration cfg = (RtpStreamConfiguration)config;

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

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

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

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