PlaybackInfoRequest.cs 1.4 KB

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