Exemple #1
0
        public static ScreenSharer CreateFileRtmp(FLVScreenCaptureConfig captureConfig, RtmpStreamerConfig streamerConfig)
        {
            string tempFileName = Path.Combine(FLVTempFolder, string.Format("{0}.flv", Guid.NewGuid()));
            var    capture      = new FLVScreenCapture(captureConfig.Resolution, captureConfig.MaxDuration, captureConfig.Quality, captureConfig.AudioDevice, tempFileName);
            var    streamer     = new RtmpStreamer(streamerConfig.ServerIP, streamerConfig.ServerPort, streamerConfig.Identity, tempFileName);

            return(new ScreenSharer(capture, streamer));
        }
 public static void Clear()
 {
     RtmpStreamer.CleanUp();
     FFMpeg.CleanUp();
 }