Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动画播放页面无法点击 #12

Closed
huluo666 opened this issue Jan 20, 2025 · 4 comments
Closed

动画播放页面无法点击 #12

huluo666 opened this issue Jan 20, 2025 · 4 comments

Comments

@huluo666
Copy link

现在的需求是礼物动画播放时也能操作页面事件
@property (nonatomic, strong) MTKView *mtkView;
能否将mtkView设置公开属性,禁用播放器的用户交互 (userInteractionEnabled = NO),确保播放器不会拦截点击事件。

@ynot16
Copy link
Collaborator

ynot16 commented Jan 20, 2025 via email

@huluo666
Copy link
Author

谢谢,再麻烦支持下远程URL设置头像,目前支持本地图片
[player setImageUrl:@"https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png" forKey:@"key_avatar1"];

@ynot16
Copy link
Collaborator

ynot16 commented Jan 20, 2025 via email

@ynot16
Copy link
Collaborator

ynot16 commented Jan 21, 2025

现在的需求是礼物动画播放时也能操作页面事件 @property (nonatomic, strong) MTKView *mtkView; 能否将mtkView设置公开属性,禁用播放器的用户交互 (userInteractionEnabled = NO),确保播放器不会拦截点击事件。

我试了下,默认不会拦截点击事件的,不用开放这个属性

@ynot16 ynot16 closed this as completed Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants