RAYTPlayer.h 584 B

12345678910111213141516171819202122232425
  1. //
  2. // RAYTPlayer.h
  3. // iSales-UWAVER
  4. //
  5. // Created by Rui Zhang on 11/26/19.
  6. // Copyright © 2019 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <WebKit/WebKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. // youtube 无法全屏播放,怀疑是google 做了限制,嵌入 blibli 源可以正常全屏
  12. @interface RAYTPlayer : UIView<WKNavigationDelegate>
  13. @property (nonatomic, strong, nullable, readonly) WKWebView *wkwebView;
  14. -(void)LoadWithVid:(NSString *)vid;
  15. -(void)LoadFromURL:(NSString *)vid;
  16. - (void)stopVideo;
  17. @end
  18. NS_ASSUME_NONNULL_END