Ejemplo n.º 1
0
        public vMixEvent(vmEventType type, DateTime start, TimeSpan duration)
        {
            switch (type)
            {
                case vmEventType.black:
                    Title = "Blackness";
                    EventType = vmEventType.black;
                    EventInfoText = "vMix will switch to black";
                    break;
                case vmEventType.manual:
                    Title = "Operator Mode";
                    EventType = vmEventType.manual;
                    EventInfoText = "vMix will be free for manual operation";
                    break;
                case vmEventType.input:
                    Title = "enter input name";
                    EventType = vmEventType.input;
                    EventInfoText = "vMix will switch to the input of the same name";
                    break;
            }

            EventPath = "";
            EventStart = start;
            EventInPoint = new TimeSpan(0);
            MediaDuration = new TimeSpan (0);
            EventDuration = duration;
            KeepDuration = false;
            EventTransition = vmTransitionType.fade;
            EventTransitionTime = 1000;
            EventLooping = true;
            SlideshowInterval = 10;
            SlideshowTransition = vmTransitionType.fade;
            SlideshowTransitionTime = 500;
        }
Ejemplo n.º 2
0
        public vMixEvent(XmlNode node)
        {
            Title         = node.Attributes.GetNamedItem("Title").Value;
            EventPath     = node.Attributes.GetNamedItem("Path").Value;
            EventType     = EventTypeFromString(node.Attributes.GetNamedItem("Type").Value);
            EventStart    = DateTime.Parse(node.Attributes.GetNamedItem("Start").Value);
            EventDuration = TimeSpan.Parse(node.Attributes.GetNamedItem("EventDuration").Value);
            if (HasDuration)
            {
                EventInPoint  = TimeSpan.Parse(node.Attributes.GetNamedItem("InPoint").Value);
                MediaDuration = TimeSpan.Parse(node.Attributes.GetNamedItem("MediaDuration").Value);
                KeepDuration  = bool.Parse(node.Attributes.GetNamedItem("KeepDuration").Value);
                EventLooping  = bool.Parse(node.Attributes.GetNamedItem("Looping").Value);
            }
            else
            {
                EventInPoint  = new TimeSpan(0);
                MediaDuration = EventDuration;
                KeepDuration  = false;
                EventLooping  = false;
            }
            EventTransition = TransitionTypeFromString(node.Attributes.GetNamedItem("Transition").Value);
            if (EventTransition != vmTransitionType.cut)
            {
                EventTransitionTime = int.Parse(node.Attributes.GetNamedItem("TransitionTime").Value);
            }
            else
            {
                EventTransitionTime = 0;
            }

            EventInfoText = node.InnerText;

            if (EventType == vmEventType.photos)
            {
                SlideshowInterval   = int.Parse(node.Attributes.GetNamedItem("SlideInterval").Value);
                SlideshowTransition = TransitionTypeFromString(node.Attributes.GetNamedItem("SlideTransition").Value);
                if (SlideshowTransition != vmTransitionType.cut)
                {
                    SlideshowTransitionTime = int.Parse(node.Attributes.GetNamedItem("SlideTransitionTime").Value);
                }
                else
                {
                    SlideshowTransitionTime = 0;
                }
            }
        }
Ejemplo n.º 3
0
 public vMixEvent(string title, string path, vmEventType type, DateTime start, TimeSpan inpoint, TimeSpan media_duration, TimeSpan event_duration, bool keep_duration, vmTransitionType transition, int transition_time, bool looping)
 {
     Title = title;
     EventPath = path;
     EventType = type;
     EventStart = start;
     EventInPoint = inpoint;
     MediaDuration = media_duration;
     EventDuration = event_duration;
     KeepDuration = keep_duration;
     EventTransition = transition;
     EventTransitionTime = transition_time;
     EventLooping = looping;
     SlideshowInterval = 10;
     SlideshowTransition = vmTransitionType.fade;
     SlideshowTransitionTime = 500;
 }
Ejemplo n.º 4
0
 public vMixEvent(string title, string path, vmEventType type, DateTime start, TimeSpan inpoint, TimeSpan media_duration, TimeSpan event_duration, bool keep_duration, vmTransitionType transition, int transition_time, bool looping)
 {
     Title                   = title;
     EventPath               = path;
     EventType               = type;
     EventStart              = start;
     EventInPoint            = inpoint;
     MediaDuration           = media_duration;
     EventDuration           = event_duration;
     KeepDuration            = keep_duration;
     EventTransition         = transition;
     EventTransitionTime     = transition_time;
     EventLooping            = looping;
     SlideshowInterval       = 10;
     SlideshowTransition     = vmTransitionType.fade;
     SlideshowTransitionTime = 500;
 }
Ejemplo n.º 5
0
 public vMixEvent(vMixEvent e)
 {
     Title = e.Title;
     EventPath = e.EventPath;
     EventType = e.EventType;
     EventStart = e.EventEnd;
     EventInPoint = e.EventInPoint;
     MediaDuration = e.MediaDuration;
     EventDuration = e.EventDuration;
     KeepDuration = e.KeepDuration;
     EventTransition = e.EventTransition;
     EventTransitionTime = e.EventTransitionTime;
     EventLooping = e.EventLooping;
     SlideshowInterval = e.SlideshowInterval;
     SlideshowTransition = e.SlideshowTransition;
     SlideshowTransitionTime = e.SlideshowTransitionTime;
     EventInfoText = e.EventInfoText;
 }
Ejemplo n.º 6
0
 public vMixEvent(vMixEvent e)
 {
     Title                   = e.Title;
     EventPath               = e.EventPath;
     EventType               = e.EventType;
     EventStart              = e.EventEnd;
     EventInPoint            = e.EventInPoint;
     MediaDuration           = e.MediaDuration;
     EventDuration           = e.EventDuration;
     KeepDuration            = e.KeepDuration;
     EventTransition         = e.EventTransition;
     EventTransitionTime     = e.EventTransitionTime;
     EventLooping            = e.EventLooping;
     SlideshowInterval       = e.SlideshowInterval;
     SlideshowTransition     = e.SlideshowTransition;
     SlideshowTransitionTime = e.SlideshowTransitionTime;
     EventInfoText           = e.EventInfoText;
 }
Ejemplo n.º 7
0
        public vMixEvent(XmlNode node)
        {
            state = 0;
            GUID = System.Guid.NewGuid().ToString();
            Title = node.Attributes.GetNamedItem("Title").Value;
            EventPath = node.Attributes.GetNamedItem("Path").Value;
            EventType = EventTypeFromString(node.Attributes.GetNamedItem("Type").Value);
            EventStart = DateTime.Parse(node.Attributes.GetNamedItem("Start").Value);
            EventDuration = TimeSpan.Parse(node.Attributes.GetNamedItem("EventDuration").Value);
            if (HasDuration)
            {
                EventInPoint = TimeSpan.Parse(node.Attributes.GetNamedItem("InPoint").Value);
                MediaDuration = TimeSpan.Parse(node.Attributes.GetNamedItem("MediaDuration").Value);
                EventLooping = bool.Parse(node.Attributes.GetNamedItem("Looping").Value);
            }
            else
            {
                EventInPoint = new TimeSpan(0);
                MediaDuration = EventDuration;
                EventLooping = false;
            }

            EventTransition = TransitionTypeFromString(node.Attributes.GetNamedItem("Transition").Value);
            if (EventTransition != vmTransitionType.cut)
                EventTransitionTime = int.Parse(node.Attributes.GetNamedItem("TransitionTime").Value);
            else
                EventTransitionTime = 0;

            if (EventType == vmEventType.photos)
            {
                SlideshowInterval = int.Parse(node.Attributes.GetNamedItem("SlideInterval").Value);
                SlideshowTransition = TransitionTypeFromString(node.Attributes.GetNamedItem("SlideTransition").Value);
                if (SlideshowTransition != vmTransitionType.cut)
                    SlideshowTransitionTime = int.Parse(node.Attributes.GetNamedItem("SlideTransitionTime").Value);
                else
                    SlideshowTransitionTime = 0;
            }
        }
Ejemplo n.º 8
0
        public vMixEvent(vmEventType type, DateTime start, TimeSpan duration)
        {
            switch (type)
            {
            case vmEventType.black:
                Title         = "Blackness";
                EventType     = vmEventType.black;
                EventInfoText = "vMix will switch to black";
                break;

            case vmEventType.manual:
                Title         = "Operator Mode";
                EventType     = vmEventType.manual;
                EventInfoText = "vMix will be free for manual operation";
                break;

            case vmEventType.input:
                Title         = "enter input name";
                EventType     = vmEventType.input;
                EventInfoText = "vMix will switch to the input of the same name";
                break;
            }

            EventPath               = "";
            EventStart              = start;
            EventInPoint            = new TimeSpan(0);
            MediaDuration           = new TimeSpan(0);
            EventDuration           = duration;
            KeepDuration            = false;
            EventTransition         = vmTransitionType.fade;
            EventTransitionTime     = 1000;
            EventLooping            = true;
            SlideshowInterval       = 10;
            SlideshowTransition     = vmTransitionType.fade;
            SlideshowTransitionTime = 500;
        }