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

collectionviewcell上添加player.view的问题 #633

Open
maomao520benben opened this issue Feb 29, 2024 · 1 comment
Open

collectionviewcell上添加player.view的问题 #633

maomao520benben opened this issue Feb 29, 2024 · 1 comment

Comments

@maomao520benben
Copy link

目标:要做一个和京东商品详情顶部的预览效果一样的页面,第一屏是视频,后面是图片的collectionview
iphoneX
iOS16.2
SJVideoPlayer '3.4.3' 版本

cellForItemAtIndexPath里添加player.view视图
截屏2024-02-29 16 56 39

问题一:底部没有预留安全距离 (测试,如果把playerview添加到self.view是有安全距离的)
截屏2024-02-29 16 58 40

问题二:切到横屏,然后切换竖屏后,cell会自动向上偏移
截屏2024-02-29 17 01 21

问题三:往右滑动之后,cell偏移的距离又恢复正常

@maomao520benben
Copy link
Author

问题二已使用,设置contentoffset的方式修复
截屏2024-02-29 17 29 40

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

1 participant