來新公司一個月,天天跪舔大哥領導,最近領導安排新活讓調研下播放器,主要因為現在項目有坑,用的VideoView坑較多,調研下基友網哪個開源項目較好一點。下面就是自己的調研報告。
Mediaplayer支持格式:https://developer.android.google.cn/guide/topics/media/media-formats
ExoPlayer 支持格式:
https://google.github.io/ExoPlayer/supported-formats.html
FFmpeg 支持格式:
https://blog.csdn.net/mqdchalali/article/details/52573245
首開和seek測試
網絡:wifi
測試手機:魅族MX6
緩存清理:安裝完成后,在設置里找到app,清除所有緩存。
首開時間操作: 卸載demo, 重新安裝 ,點擊播放按鈕,截取三次。
未緩存結束seek操作:,清除緩存后,點擊播放,任意拖拽進度條到未緩存部分,并隨意拖動進度條.
緩存結束后seek操作:當播放/緩存進度條到頭后,斷掉網絡,隨意拖動。
Jiaozivideoplayer
使用ijk內核 首開需要4-5s
image.png
image.png
image.png
未完全緩存結束seek 時間為2-3s但是經常有卡頓現象
image.png
緩存結束后seek 在1s內 但是經常有卡頓現象
image.png
切換Exo內核
首開時間 在1.5s左右
image.png
image.png
image.png
未完全緩存結束seek 1-3s有卡頓現象
image.png
緩存結束后seek時間
時間基本在0.5s以內,能看到略微有卡頓,卡頓感較低。
image.png
Ijkplayer
首開時間截圖基本在1-2s之間
image.png
image.png
image.png
未完全緩存結束seek 基本在1s左右
image.png
緩存結束后seek時間
時間基本在1s以內,能看到卡頓現象,卡頓感較低
image.png
ExoPlayer
首開時間測試 基本在1s內
image.png
image.png
image.png
未完全緩存結束seek時間截圖
基本保證在1-2s內
image.png
緩存結束后seek時間:
基本可以做到瞬間播放
image.png
GSYVideoPlayer
image.png
image.png
image.png
未完全緩存結束seek
基本在1-2s內
image.png
緩存結束后seek時間:
時間在1s內,但是會有一下頁面卡頓
image.png