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

            AddService(typeof(VideoCodecFactory), videoCodecFactory, false);
            Init();
        }