KSYGPUBgmStreamerKit.h 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // KSYGPUBgmStreamerKit.h
  3. // KSYStreamer
  4. //
  5. // Created by jiangdong on 28/12/16.
  6. // Copyright © 2016 ksyun. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <libksygpulive/KSYGPUStreamerKit.h>
  11. @interface KSYGPUBgmStreamerKit : KSYGPUStreamerKit
  12. /**
  13. @abstract 背景音乐播放器
  14. */
  15. @property (nonatomic, strong) KSYMoviePlayerController *ksyBgmPlayer;
  16. /**
  17. @abstract 开始播放背景音乐
  18. @param path 背景音乐的路径
  19. */
  20. - (void) startPlayBgm:(NSString*) path;
  21. /**
  22. @abstract 停止播放背景音乐
  23. */
  24. - (void) stopPlayBgm;
  25. /**
  26. @abstract 获取状态对应的字符串
  27. @param stat 状态
  28. */
  29. - (NSString*) getBgmStateName : (MPMoviePlaybackState) stat;
  30. /**
  31. @abstract 获取当前状态对应的字符串
  32. */
  33. - (NSString*) getCurBgmStateName;
  34. /**
  35. @abstract  播放状态
  36. */
  37. @property (nonatomic, readonly) MPMoviePlaybackState BgmState;
  38. @end