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 Guid Id { get; set; }
  10. public Guid UserId { get; set; }
  11. public long? MaxStreamingBitrate { get; set; }
  12. public long? StartTimeTicks { get; set; }
  13. public int? AudioStreamIndex { get; set; }
  14. public int? SubtitleStreamIndex { get; set; }
  15. public int? MaxAudioChannels { get; set; }
  16. public string MediaSourceId { get; set; }
  17. public string LiveStreamId { get; set; }
  18. public DeviceProfile DeviceProfile { get; set; }
  19. public bool EnableDirectPlay { get; set; }
  20. public bool EnableDirectStream { get; set; }
  21. public bool EnableTranscoding { get; set; }
  22. public bool AllowVideoStreamCopy { get; set; }
  23. public bool AllowAudioStreamCopy { get; set; }
  24. public bool IsPlayback { get; set; }
  25. public bool AutoOpenLiveStream { get; set; }
  26. public MediaProtocol[] DirectPlayProtocols { get; set; }
  27. public PlaybackInfoRequest()
  28. {
  29. EnableDirectPlay = true;
  30. EnableDirectStream = true;
  31. EnableTranscoding = true;
  32. AllowVideoStreamCopy = true;
  33. AllowAudioStreamCopy = true;
  34. IsPlayback = true;
  35. DirectPlayProtocols = new MediaProtocol[] { MediaProtocol.Http };
  36. }
  37. }
  38. }