public void Register() { //Start services dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory streamableFileFactory = ObjectFactory.CreateInstance(FluorineConfiguration.Instance.FluorineSettings.StreamableFileFactory.Type) as dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory; AddService(typeof(dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory), streamableFileFactory, false); streamableFileFactory.Start(null); dotFlex.Scheduling.SchedulingService schedulingService = new dotFlex.Scheduling.SchedulingService(); AddService(typeof(dotFlex.Scheduling.ISchedulingService), schedulingService, false); schedulingService.Start(null); dotFlex.Messaging.Rtmp.Stream.IBWControlService bwControlService = ObjectFactory.CreateInstance(FluorineConfiguration.Instance.FluorineSettings.BWControlService.Type) as dotFlex.Messaging.Rtmp.Stream.IBWControlService; AddService(typeof(dotFlex.Messaging.Rtmp.Stream.IBWControlService), bwControlService, false); bwControlService.Start(null); VideoCodecFactory videoCodecFactory = new VideoCodecFactory(); AddService(typeof(VideoCodecFactory), videoCodecFactory, false); Init(); }
public void Register() { //Start services dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory streamableFileFactory = ObjectFactory.CreateInstance(FluorineConfiguration.Instance.FluorineSettings.StreamableFileFactory.Type) as dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory; AddService(typeof(dotFlex.Messaging.Rtmp.IO.IStreamableFileFactory), streamableFileFactory, false); streamableFileFactory.Start(null); dotFlex.Scheduling.SchedulingService schedulingService = new dotFlex.Scheduling.SchedulingService(); AddService(typeof(dotFlex.Scheduling.ISchedulingService), schedulingService, false); schedulingService.Start(null); dotFlex.Messaging.Rtmp.Stream.IBWControlService bwControlService = ObjectFactory.CreateInstance(FluorineConfiguration.Instance.FluorineSettings.BWControlService.Type) as dotFlex.Messaging.Rtmp.Stream.IBWControlService; AddService(typeof(dotFlex.Messaging.Rtmp.Stream.IBWControlService), bwControlService, false); bwControlService.Start(null); VideoCodecFactory videoCodecFactory = new VideoCodecFactory(); AddService(typeof(VideoCodecFactory), videoCodecFactory, false); Init(); }