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

结合自己的项目做的一些小改动 #247

Open
Lovezysong opened this issue Mar 3, 2021 · 1 comment
Open

结合自己的项目做的一些小改动 #247

Lovezysong opened this issue Mar 3, 2021 · 1 comment

Comments

@Lovezysong
Copy link

1.增加了属性showMuted静音开关按钮。
2.增加了useVideoTime属性,采用视频的真实时长(开屏广告不会太长,时长也可能不是整数,向下的取整,制作时一般是整数)去倒计时,播放完成也就显示完成,则原来的duration属性无效。
3.动画的自定义接口,任意动画
4.视频播放完毕的AVPlayerItemDidPlayToEndTimeNotification监听带来的问题,APP其他页面播放完视频都会走xhlaunchad.m 335行的代码导致一直打印和广播XHLaunchAdVideoCycleOnceFinishNotification,采用了另外的方式去监听视频的播放完成
5.多语言的支持
6.增加了属性控制状态栏的隐藏和颜色
7.由于网络因素我就直接废弃setWaitDataDuration这个方法了,再快的网都不一定能显示成功,那就完全采用预加载,网络广告API缓存,然后再是图片视频的预缓存,有缓存就显示广告,反正效果非常好,用户只要能看到广告就好了,不关心他第几次打开才看到
8.增加了长视频动画动画嵌入页面的效果,就像今日头条那样点击完跳过会动画到页面的某个位置继续播放
9.增加了广告的显示频率控制,两次打开APP间隔不超过一分钟(1小时,一天等任意时间段)则不再显示广告
10.增加属性预设特定时间段显示,或者特定位置显示广告。虽然后面几条的逻辑完全和开屏广告的显示无关,但只想封装在一起

@RocPengPeng
Copy link

@Lovezysong 可以发出来看看吗?

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