コード例 #1
0
        /// <summary>
        /// Notifies subscribers on item playback.
        /// </summary>
        /// <param name="item">Item being played.</param>
        /// <param name="isLive">Is it a live broadcasting?</param>
        internal void NotifyItemPlay(IPlayItem item, bool isLive)
        {
            IStreamAwareScopeHandler handler = GetStreamAwareHandler();

            if (handler != null)
            {
                try {
                    handler.StreamPlaylistItemPlay(this, item, isLive);
                } catch (Exception ex) {
                    log.Error("Error notify streamPlaylistItemPlay", ex);
                }
            }
        }