PlaybackInfoRequest.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using MediaBrowser.Model.Dlna;
  5. namespace MediaBrowser.Model.MediaInfo
  6. {
  7. public class PlaybackInfoRequest
  8. {
  9. public PlaybackInfoRequest()
  10. {
  11. EnableDirectPlay = true;
  12. EnableDirectStream = true;
  13. EnableTranscoding = true;
  14. AllowVideoStreamCopy = true;
  15. AllowAudioStreamCopy = true;
  16. IsPlayback = true;
  17. DirectPlayProtocols = new MediaProtocol[] { MediaProtocol.Http };
  18. }
  19. public Guid Id { get; set; }
  20. public Guid UserId { get; set; }
  21. public long? MaxStreamingBitrate { get; set; }
  22. public long? StartTimeTicks { get; set; }
  23. public int? AudioStreamIndex { get; set; }
  24. public int? SubtitleStreamIndex { get; set; }
  25. public int? MaxAudioChannels { get; set; }
  26. public string MediaSourceId { get; set; }
  27. public string LiveStreamId { get; set; }
  28. public DeviceProfile DeviceProfile { get; set; }
  29. public bool EnableDirectPlay { get; set; }
  30. public bool EnableDirectStream { get; set; }
  31. public bool EnableTranscoding { get; set; }
  32. public bool AllowVideoStreamCopy { get; set; }
  33. public bool AllowAudioStreamCopy { get; set; }
  34. public bool IsPlayback { get; set; }
  35. public bool AutoOpenLiveStream { get; set; }
  36. public MediaProtocol[] DirectPlayProtocols { get; set; }
  37. }
  38. }