コード例 #1
0
        protected virtual void LaptopSourceOnVideoDetected(ASource source, bool videoActive)
        {
            if (!System.Booted)
            {
                return;
            }

            var vcContentSource =
                Sources.Cast <ASource>()
                .Where(s => s.Type != SourceType.VideoConference)
                .OrderByDescending(s => s.VideoInputActive)
                .ThenByDescending(s => s.Type == SourceType.Laptop)
                .FirstOrDefault();

            RouteCodecPresentationSource(vcContentSource, true);

            if (!AutoSourceSelectionEnabled)
            {
                return;
            }

            SetupDisplays();

            if (Source != source && videoActive && !InCall)
            {
                Source = source;
            }
            else if (!InCall)
            {
                SelectDefaultSource();
            }
        }
コード例 #2
0
        protected virtual void OnVideoStatusChangeDetected(ASource source, bool videoActive)
        {
            var handler = VideoStatusChangeDetected;

            if (handler != null)
            {
                try
                {
                    handler(source, videoActive);
                }
                catch (Exception e)
                {
                    CloudLog.Exception(e);
                }
            }
        }
コード例 #3
0
 public virtual void RouteCodecPresentationSource(ASource value, bool isAuto)
 {
 }