thiagooo0 / lmnplayer Goto Github PK
View Code? Open in Web Editor NEW完整版的ijkplayer,现在自己改一下
完整版的ijkplayer,现在自己改一下
*/
private void createSurfaceView() {
//生成一个新的surface view
surfaceView = new SurfaceView(mContext);
surfaceView.getHolder().addCallback(new LmnSurfaceCallback());
LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT
, LayoutParams.MATCH_PARENT, Gravity.CENTER);
surfaceView.setLayoutParams(layoutParams);
this.addView(surfaceView);
}
这个方法直接放在构造方法内调用就行了,每次都只是创建一次啊,
你好,我运行了一下项目,发现ijkplayerdemo这个module不会回调onCompletion。不知道是什么原因,但是log中有看到ijk给出的log是有complete的。log如下:
07-12 11:15:40.682 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 12626 us
07-12 11:15:40.762 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 12181 us
07-12 11:15:40.843 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 12959 us
07-12 11:15:40.921 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 11613 us
07-12 11:15:41.003 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 13775 us
07-12 11:15:41.081 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 11071 us
07-12 11:15:41.241 24981-25109/com.ehang.ijkpleyerdemo W/ACodec: mNativeWindow->dequeueBuffer() took 10981 us
07-12 11:15:41.591 24981-25098/com.ehang.ijkpleyerdemo I/IJKMEDIA: ffp_toggle_buffering: completed: OK
07-12 11:15:41.702 24981-25098/com.ehang.ijkpleyerdemo I/IJKMEDIA: ffp_toggle_buffering: eof
不知道为何没有回调OnCompletionListener的onCompletion方法
你好,我再Ubuntu 下默认编译出来的工程,打开ac3文件,没有声音。用你的项目打开有声音,能告诉下,在编译的时候,怎么配置支持ac3的库,谢谢了! 可以发邮箱 [email protected]
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.