zhaoss / videoplayerdemo Goto Github PK
View Code? Open in Web Editor NEW封装ijkplay播放器, 自实现边下边播和缓存功能
封装ijkplay播放器, 自实现边下边播和缓存功能
视频上下滑动速度快一点就出现黑色图片显示,播放的声音滑动时的视频,不是滑动后的视频
1.页面在如果停留,则会一直不停的循环播放可视区域的视频
2.播放最后一个进入全屏,播完后会直接滚动到第一条视频开始播放
3.视频在列表是播放,只要一滑动屏幕就会暂停,松开后又会重新播放
识别不了.so文件,导致视频无法播放,一直转圈圈。
效果上没有看到:进度条拖动、双击播放暂停、单击显示播放暂停按钮可以点击播放暂停,期待加上
在模拟器中无法播放,但是真机可以。请问遇到过吗
可以提供64位的so文件吗
我直接把本地视频的path传给了videoUrl,貌似不能播放,请问是否可以播放本地视频??
显示是的okhttp超时,应该是缓存跟不上播放进度。
12-08 21:07:24.543 20594-20594/com.weibo.wbalk V/AudioManager: playSoundEffect effectType: 0 12-08 21:07:42.167 20594-23391/com.weibo.wbalk W/System.err: java.net.SocketTimeoutException: timeout at okio.Okio$4.newTimeoutException(Okio.java:232) at okio.AsyncTimeout.exit(AsyncTimeout.java:285) at okio.AsyncTimeout$2.read(AsyncTimeout.java:241) at okio.RealBufferedSource.read(RealBufferedSource.java:47) 12-08 21:07:42.168 20594-23391/com.weibo.wbalk W/System.err: at okhttp3.internal.http1.Http1Codec$AbstractSource.read(Http1Codec.java:363) at okhttp3.internal.http1.Http1Codec$FixedLengthSource.read(Http1Codec.java:407) at okio.RealBufferedSource$1.read(RealBufferedSource.java:440) at java.io.InputStream.read(InputStream.java:101) at com.weibo.wbalk.app.utils.CacheMediaDataSource.readByteBySize(CacheMediaDataSource.java:132) at com.weibo.wbalk.app.utils.CacheMediaDataSource.readAt(CacheMediaDataSource.java:80) 12-08 21:07:42.169 20594-23391/com.weibo.wbalk W/System.err: Caused by: java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:203) at java.net.SocketInputStream.read(SocketInputStream.java:139) at okio.Okio$2.read(Okio.java:140) at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
你还请问下暂停功能和展厅后重新播放是哪一个方法?
m3u8 视频播放一直失败,希望可以提供 m3u8 支持。
谢谢Zhaoss的开源库,我们最近在做视频播放这个模块,节省了我很多时间。
有个问题:播放当前视频时候去下载下一条视频,这样切换到下一条视频就可以直接开始播放了。
可以提供一下实现的思路吗?
star一下,顺便说一下,glide就可以自动截视频第一帧作为封面
Glide.with(mContext).load(mainVideoBean.getVideoUrl()).into(vh.iv_cover);
全面屏机型 小视频没有全屏
当上下来回滑动时,线程数会不断的增多
if(position>=contentLength || localStream==null){
return -1;
}
这个是CacheMediaDataSource中readAt判断
当第一次加载视频的时候,initInputStream()中走打开网络流contentLength没有被赋值,默认为0,此时返回-1
您好,大佬!我想请教下咱们这个播放器是否可以支持视频文件宽高的自适应,我看到demo中传入视频url的同时一般都要把video的width和height传入,能否不穿视频width和height,自适应视频在屏幕中显示??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.