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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }