WFCUFileVideoSource.h 810 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // WFCUFileVideoSource.h
  3. // WFChatUIKit
  4. //
  5. // Created by Rain on 2022/8/1.
  6. // Copyright © 2022 Wildfirechat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #if WFCU_SUPPORT_VOIP
  10. #import <WFAVEngineKit/WFAVEngineKit.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. /*
  13. 外置视频源demo,仅音视频高级版支持。不支持外置音频。使用时需要切换到外置视频源时,参考下面代码
  14. ```
  15. NSString *videoPath = [[NSBundle mainBundle] pathForResource:@"foreman" ofType:@"mp4"];
  16. self.fileVideoSource = [[WFCUFileVideoSource alloc] initWithFile:videoPath];
  17. self.currentSession.externalVideoSource = self.fileVideoSource;
  18. ```
  19. */
  20. @interface WFCUFileVideoSource : NSObject <WFAVExternalVideoSource>
  21. - (instancetype)initWithFile:(NSString *)filePath;
  22. @end
  23. NS_ASSUME_NONNULL_END
  24. #endif