GDTVideoAdReporter.h 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // GDTVideoAdReporter.h
  3. // GDTMobSDK
  4. //
  5. // Created by Nancy on 2022/10/17.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @protocol GDTVideoAdReporter <NSObject>
  10. @required
  11. /**
  12. * 视频开始播放
  13. * @param duration 视频总时长,单位毫秒
  14. */
  15. - (void)didStartPlayVideoWithVideoDuration:(NSTimeInterval)duration;
  16. /**
  17. * 视频播放完成
  18. */
  19. - (void)didFinishPlayingVideo;
  20. /**
  21. * 视频暂停播放
  22. * @param duration 视频已播放时长,单位毫秒
  23. */
  24. - (void)didPauseVideoWithCurrentDuration:(NSTimeInterval)duration;
  25. /**
  26. * 视频恢复播放
  27. * @param duration 视频已播放时长,单位毫秒
  28. */
  29. - (void)didResumeVideoWithCurrentDuration:(NSTimeInterval)duration;
  30. /**
  31. * 视频播放失败
  32. * @param error 失败原因
  33. */
  34. - (void)didPlayFailedWithError:(NSError *)error;
  35. @end
  36. NS_ASSUME_NONNULL_END