Beispiel #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);
        }
Beispiel #2
0
 public PlaylistEnumerator(HlsPlaylistSegmentManager segmentManager)
 {
     if (null == segmentManager)
     {
         throw new ArgumentNullException(nameof(segmentManager));
     }
     _segmentManager = segmentManager;
 }