public static StreamingSoftwareActionModel CreateSceneAction(StreamingSoftwareTypeEnum softwareType, string sceneName)
        {
            StreamingSoftwareActionModel action = new StreamingSoftwareActionModel(softwareType, StreamingSoftwareActionTypeEnum.Scene);

            action.ItemName = sceneName;
            return(action);
        }
        public static StreamingSoftwareActionModel CreateSourceDimensionsAction(StreamingSoftwareTypeEnum softwareType, string sceneName, string sourceName, bool sourceVisible, StreamingSoftwareSourceDimensionsModel sourceDimensions)
        {
            StreamingSoftwareActionModel action = StreamingSoftwareActionModel.CreateSourceVisibilityAction(softwareType, sceneName, sourceName, sourceVisible);

            action.ActionType       = StreamingSoftwareActionTypeEnum.SourceDimensions;
            action.SourceDimensions = sourceDimensions;
            return(action);
        }
        public static StreamingSoftwareActionModel CreateTextSourceAction(StreamingSoftwareTypeEnum softwareType, string sceneName, string sourceName, bool sourceVisible, string sourceText, string sourceTextFilePath)
        {
            StreamingSoftwareActionModel action = StreamingSoftwareActionModel.CreateSourceVisibilityAction(softwareType, sceneName, sourceName, sourceVisible);

            action.ActionType         = StreamingSoftwareActionTypeEnum.TextSource;
            action.SourceText         = sourceText;
            action.SourceTextFilePath = sourceTextFilePath;
            return(action);
        }
        public static StreamingSoftwareActionModel CreateSourceFilterVisibilityAction(StreamingSoftwareTypeEnum softwareType, string sourceName, string filterName, bool sourceVisible)
        {
            StreamingSoftwareActionModel action = new StreamingSoftwareActionModel(softwareType, StreamingSoftwareActionTypeEnum.SourceFilterVisibility);

            action.ParentName = sourceName;
            action.ItemName   = filterName;
            action.Visible    = sourceVisible;
            return(action);
        }
        public static StreamingSoftwareActionModel CreateWebBrowserSourceAction(StreamingSoftwareTypeEnum softwareType, string sceneName, string sourceName, bool sourceVisible, string sourceURL)
        {
            StreamingSoftwareActionModel action = StreamingSoftwareActionModel.CreateSourceVisibilityAction(softwareType, sceneName, sourceName, sourceVisible);

            action.ActionType = StreamingSoftwareActionTypeEnum.WebBrowserSource;
            action.SourceURL  = sourceURL;
            if (softwareType == StreamingSoftwareTypeEnum.XSplit)
            {
                if (!File.Exists(action.SourceURL) && !action.SourceURL.Contains("://"))
                {
                    action.SourceURL = "http://" + action.SourceURL;
                }
            }
            return(action);
        }