在向后搜寻的情况下,如何防止exoplayer重新加载? [英] How to prevent the exoplayer from reloading in case of seek backward?

查看:140
本文介绍了在向后搜寻的情况下,如何防止exoplayer重新加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用exoplayer播放mp3曲目.都好.如果轨道已完全缓冲,则在向前搜索的情况下不会按预期方式重新加载.但是,如果向后搜索,它将重新加载. 我该如何预防呢? 是exo的错误吗?

I am using exoplayer to play mp3 tracks. All good. If the track is completely buffered then in case of seek forward it does not reload as expected. However, in case of seek backward it reloads. How do i prevent that? Is it a bug in exo?

推荐答案

并不是真正的解决方案,但是您可以使用一个库来充当ExoPlayer与视频URL之间的代理,例如

Not really a solution, but you can use a library that acts as a proxy between ExoPlayer and the video URL like AndroidVideoCache. It downloads the video to disk and supplies ExoPlayer with the local file URL so re-buffering is much faster.

这篇关于在向后搜寻的情况下,如何防止exoplayer重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆