IJKFFMonitor.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 2016 Bilibili
  3. * Copyright (c) 2016 Zhang Rui <bbcallen@gmail.com>
  4. *
  5. * This file is part of ijkPlayer.
  6. *
  7. * ijkPlayer is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * ijkPlayer is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with ijkPlayer; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #import <Foundation/Foundation.h>
  22. @interface IJKFFMonitor : NSObject
  23. - (instancetype)init;
  24. @property(nonatomic) NSDictionary *mediaMeta;
  25. @property(nonatomic) NSDictionary *videoMeta;
  26. @property(nonatomic) NSDictionary *audioMeta;
  27. @property(nonatomic, readonly) int64_t duration; // milliseconds
  28. @property(nonatomic, readonly) int64_t bitrate; // bit / sec
  29. @property(nonatomic, readonly) float fps; // frame / sec
  30. @property(nonatomic, readonly) int width; // width
  31. @property(nonatomic, readonly) int height; // height
  32. @property(nonatomic, readonly) NSString *vcodec; // video codec
  33. @property(nonatomic, readonly) NSString *acodec; // audio codec
  34. @property(nonatomic, readonly) int sampleRate;
  35. @property(nonatomic, readonly) int64_t channelLayout;
  36. @property(nonatomic) NSString *vdecoder;
  37. @property(nonatomic) int tcpError;
  38. @property(nonatomic) NSString *remoteIp;
  39. @property(nonatomic) int httpError;
  40. @property(nonatomic) NSString *httpUrl;
  41. @property(nonatomic) NSString *httpHost;
  42. @property(nonatomic) int httpCode;
  43. @property(nonatomic) int64_t httpOpenTick;
  44. @property(nonatomic) int64_t httpSeekTick;
  45. @property(nonatomic) int httpOpenCount;
  46. @property(nonatomic) int httpSeekCount;
  47. @property(nonatomic) int64_t lastHttpOpenDuration;
  48. @property(nonatomic) int64_t lastHttpSeekDuration;
  49. @property(nonatomic) int64_t prepareStartTick;
  50. @property(nonatomic) int64_t prepareDuration;
  51. @property(nonatomic) int64_t firstVideoFrameLatency;
  52. @property(nonatomic) int64_t lastPrerollStartTick;
  53. @property(nonatomic) int64_t lastPrerollDuration;
  54. @end