Exemple #1
0
        public override TSStream Clone()
        {
            var stream = new TSGraphicsStream();

            CopyTo(stream);
            return(stream);
        }
Exemple #2
0
 /// <summary>
 /// Adds the subtitle stream.
 /// </summary>
 /// <param name="streams">The streams.</param>
 /// <param name="textStream">The text stream.</param>
 private void AddSubtitleStream(List <MediaStream> streams, TSGraphicsStream textStream)
 {
     streams.Add(new MediaStream
     {
         Language = textStream.LanguageCode,
         Codec    = textStream.CodecShortName,
         Type     = MediaStreamType.Subtitle,
         Index    = streams.Count
     });
 }