# VideoLibrary **Repository Path**: kotle/VideoLibrary ## Basic Information - **Project Name**: VideoLibrary - **Description**: 基于ExoPlayer封装的视频库,使用起来更方便,好用,扩展性强 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-21 - **Last Updated**: 2021-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VideoLibrary 音视频播放库,目前基于ExoPlayer. * 支持视频缓存 * 支持自动优先播放缓存 * 支持其他视频格式转MP4 * 支持异步设置播放链接 * 支持音频焦点自动处理 * 支持生命周期自动管理 * 支持设置通知栏播放样式 * 支持高度自定义 * ... 导入依赖 ===== ```groovy allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` **implementation "com.gitee.kotle:VideoLibrary:** [![](https://jitpack.io/v/com.gitee.kotle/VideoLibrary.svg)](https://jitpack.io/#com.gitee.kotle/VideoLibrary) " 依赖添加 ===== ```gradle implementation "com.gitee.kotle:VideoLibrary:last_version" //exoplayer 添加依赖库 implementation "com.google.android.exoplayer:exoplayer:${exoplayer_version}" implementation "com.google.android.exoplayer:extension-rtmp:${exoplayer_version}" implementation "com.google.android.exoplayer:extension-mediasession:${exoplayer_version}" implementation "com.google.android.exoplayer:extension-workmanager:${exoplayer_version}" //sdk 初始化 implementation "androidx.startup:startup-runtime:1.0.0" ``` # 如何使用 所有可支持的函数和对象创建,详情可以看[IYzsPlayer](https://gitee.com/kotle/VideoLibrary/blob/master/playerlibrary/src/main/java/com/yizisu/playerlibrary/IYzsPlayer.kt)中的方法