public MixerVideoCapturer(Mixer.Video.Canvas canvas, int width, int height, int fps, Action <byte[]> callBack) { _width = width; _height = height; _fps = fps; _callBack = callBack; this.Canvas = canvas; _ffscale = new FFScale(width, height, 3, 24, width, height, 0, 12); }
public MixerVideoEncoder(Mixer.Video.Canvas canvas, VideoEncodeCfg cfgVideo, Action <MediaFrame> callBack) : base(cfgVideo, callBack, canvas) { base.Canvas = canvas; }