PlaybackInfoRequest.cs 1.4 KB

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