internal void RaiseRenderingSubtitlesEvent(SubtitleBlock block, TimeSpan clock)
        {
            var args = new RenderingSubtitlesEventArgs(
                block.Text, block.OriginalText, block.OriginalTextType, Container.MediaInfo.Streams[block.StreamIndex], block.StartTime, block.Duration, clock);

            RenderingSubtitles?.Invoke(this, args);
        }
        internal bool RaiseRenderingSubtitlesEvent(SubtitleBlock block, TimeSpan clock)
        {
            var e = new RenderingSubtitlesEventArgs(
                block.Text,
                block.OriginalText,
                block.OriginalTextType,
                Container.MediaInfo.Streams[block.StreamIndex],
                block.StartTime,
                block.Duration,
                clock);

            RenderingSubtitles?.Invoke(this, e);
            return(e.Cancel);
        }
        internal bool RaiseRenderingSubtitlesEvent(SubtitleBlock block, TimeSpan clock)
        {
            if (RenderingSubtitles == null)
            {
                return(false);
            }

            var e = new RenderingSubtitlesEventArgs(
                block.Text,
                block.OriginalText,
                block.OriginalTextType,
                MediaCore.State,
                MediaCore.MediaInfo.Streams[block.StreamIndex],
                block.StartTime,
                block.Duration,
                clock);

            RenderingSubtitles?.Invoke(this, e);
            return(e.Cancel);
        }