FSPlaylistItem.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * This file is part of the FreeStreamer project,
  3. * (C)Copyright 2011-2018 Matias Muhonen <mmu@iki.fi> 穆马帝
  4. * See the file ''LICENSE'' for using the code.
  5. *
  6. * https://github.com/muhku/FreeStreamer
  7. */
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * A playlist item. Each item has a title and url.
  11. */
  12. @interface FSPlaylistItem : NSObject {
  13. }
  14. /**
  15. * The title of the playlist item.
  16. */
  17. @property (nonatomic,copy) NSString *title;
  18. /**
  19. * The URL of the playlist item.
  20. */
  21. @property (nonatomic,copy) NSURL *url;
  22. /**
  23. * The originating URL of the playlist item.
  24. */
  25. @property (nonatomic,copy) NSURL *originatingUrl;
  26. /**
  27. * The number of bytes of audio data. Notice that this may differ
  28. * from the number of bytes the server returns for the content length!
  29. * For instance audio file meta data is excluded from the count.
  30. * Effectively you can use this property for seeking calculations.
  31. *
  32. * The property is only available for non-continuous streams which
  33. * have been in the "playing" state.
  34. */
  35. @property (nonatomic,assign) UInt64 audioDataByteCount;
  36. @end