IHasMediaSources.cs 761 B

1234567891011121314151617181920212223242526272829
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Model.Dto;
  6. using MediaBrowser.Model.Entities;
  7. namespace MediaBrowser.Controller.Entities
  8. {
  9. public interface IHasMediaSources
  10. {
  11. Guid Id { get; set; }
  12. long? RunTimeTicks { get; set; }
  13. string Path { get; }
  14. /// <summary>
  15. /// Gets the media sources.
  16. /// </summary>
  17. /// <param name="enablePathSubstitution"><c>true</c> to enable path substitution, <c>false</c> to not.</param>
  18. /// <returns>A list of media sources.</returns>
  19. IReadOnlyList<MediaSourceInfo> GetMediaSources(bool enablePathSubstitution);
  20. IReadOnlyList<MediaStream> GetMediaStreams();
  21. }
  22. }