Ejemplo n.º 1
0
        public async Task <ISegmentManager> CreateAsync(ISegmentManagerParameters parameters, ContentType contentType, CancellationToken cancellationToken)
        {
            var subProgram = await _hlsPlaylistSegmentManagerPolicy.CreateSubProgramAsync(parameters.Source, contentType, cancellationToken).ConfigureAwait(false);

            var segmentManager = new HlsPlaylistSegmentManager(subProgram.Video, _platformServices, cancellationToken);

            return(segmentManager);
        }
Ejemplo n.º 2
0
 public PlaylistEnumerator(HlsPlaylistSegmentManager segmentManager)
 {
     if (null == segmentManager)
     {
         throw new ArgumentNullException(nameof(segmentManager));
     }
     _segmentManager = segmentManager;
 }