コード例 #1
0
        /// <summary>
        /// Returns the name of the shot associated with the shotID
        /// If there are no shots associated with that ID, returns an empty string
        /// </summary>
        public string GetShotNameWithID(int shotID)
        {
            object shot = GetShotWithID(shotID);

            if (shot != null)
            {
                return((string)Late.Get(shot, "Name"));
            }
            else
            {
                return("");
            }
        }
コード例 #2
0
        /// <summary>
        /// Returns the shot ID of the active shot, of the currently selected layer
        /// The Active shot is equivilent to the shot the user has clicked
        /// It doesn't mean the shot that is currently live or in preview, though it is possible the active shot is live or in preview
        /// </summary>
        public int GetActiveShotID()
        {
            int shotID = (int)Late.Get(_SelectedLayer, "ActiveShotID");

            return(shotID);
        }
コード例 #3
0
        /// <summary>
        /// Returns true if the currently selected layer is visible, false otherwise
        /// </summary>
        public bool IsLayerVisible()
        {
            int visible = (int)Late.Get(_SelectedLayer, "Visible");

            return(visible == 1);
        }
コード例 #4
0
        /// <summary>
        /// Returns true if the Audio is muted tot he speakers
        /// </summary>
        public bool IsAudioMutedToSpeakers()
        {
            int audioMuted = (int)Late.Get(_Document, "AudioMutedToSpeaker");

            return(audioMuted == 1);
        }
コード例 #5
0
        /// <summary>
        /// Returns the index of the currently active Transition popup
        /// A value of 0 represents the left most popup in the Wirecast UI
        /// </summary>
        public int GetActiveTransitionIndex()
        {
            int activeTransIndex = (int)Late.Get(_Document, "ActiveTransitionIndex");

            return(activeTransIndex);
        }
コード例 #6
0
        /// <summary>
        /// Returns the current sate of AutoLive in the selected document
        /// </summary>
        public bool IsAutoLiveOn()
        {
            int autoLiveOn = (int)Late.Get(_Document, "AutoLive");

            return(autoLiveOn == 1);
        }
コード例 #7
0
        /// <summary>
        /// Returns the currently select Transition speed name
        ///
        /// For a list of valid transition speeds, see GetValidTransitionSpeeds()
        /// </summary>
        public string GetTransitionSpeed()
        {
            string transSpeed = (string)Late.Get(_Document, "TransitionSpeed");

            return(transSpeed);
        }