CarGuo / GSYVideoPlayer

视频播放器(IJKplayer、ExoPlayer、MediaPlayer),HTTPS,16k page size,支持弹幕,外挂字幕,支持滤镜、水印、gif截图,片头广告、中间广告,多个同时播放,支持基本的拖动,声音、亮度调节,支持边播边缓存,支持视频自带rotation的旋转(90,270之类),重力旋转与手动旋转的同步支持,支持列表播放 ,列表全屏动画,视频加载速度,列表小窗口支持拖动,动画效果,调整比例,多分辨率切换,支持切换播放器,进度条小窗口预览,列表切换详情页面无缝播放,rtsp、concat、mpeg。
https://juejin.cn/user/817692379985752/posts
Apache License 2.0
20.1k stars 4.18k forks source link

与【com.danikula:videocache】依赖冲突的尴尬问题 #4006

Closed KeQian closed 2 months ago

KeQian commented 2 months ago
 private const val version="v8.6.0-release-jitpack"
 const val videoPalyer= "com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:$version"

api(Deps.gsyVideo.videoPalyer){ exclude("com.github.CarGuo.GSYVideoPlayer","gsyvideoplayer-androidvideocache") // exclude("com.danikula","videocache") }

以上是我的引用:

问题描述: gsyvideoplayer-androidvideocache 中包含和 com.danikula:videocache 一样的代码,com.danikula:videocache又不能去掉,排除掉gsyvideoplayer-androidvideocache ,GSYVideoPlayer又不能正常播放。

CarGuo commented 2 months ago

还是有点不一样,但是 gsy 的理论上是可以兼容com.danikula的,建议 排除 com.danikula

KeQian commented 2 months ago

还是有点不一样,但是 gsy 的理论上是可以兼容com.danikula的,建议 排除 com.danikula

诶 为啥要直接copy com.danikula:videocache,还不改包名,其他三方库引用了 com.danikula:videocache,导致了同名类冲突,大佬有啥好的处理方式么

CarGuo commented 2 months ago

因为要要改一些东西,所以就fork过来修改了,它六年没改过了······类似这样处理

implementation('com.example.library:library-a:1.0.0') {
    exclude group: 'com.example.library', module: 'module-to-exclude'
}

implementation('com.example.library:library-a:1.0.0') {
    exclude module: 'xxxxx
}