X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fai%2Fsuanzi%2Frtmpclient%2FFfmpeg.java;h=ef9063abc827f597c53b97d5c598b842989f2e27;hb=912af179748912e3488dd12e963f88a06a9d1c6c;hp=83ab06e46f43e7d0473209bfb54c7873e6c2ad0b;hpb=92dcc922db72fe328a68ae80d09ae5d391384c44;p=rtmpclient.git diff --git a/app/src/main/java/ai/suanzi/rtmpclient/Ffmpeg.java b/app/src/main/java/ai/suanzi/rtmpclient/Ffmpeg.java index 83ab06e..ef9063a 100644 --- a/app/src/main/java/ai/suanzi/rtmpclient/Ffmpeg.java +++ b/app/src/main/java/ai/suanzi/rtmpclient/Ffmpeg.java @@ -3,7 +3,14 @@ package ai.suanzi.rtmpclient; public class Ffmpeg { static { + String arch = System.getProperty("os.arch"); + if (arch.equals("i686")){ + System.loadLibrary("x264"); + } System.loadLibrary("avutil"); + + System.loadLibrary("postproc"); + System.loadLibrary("swresample"); System.loadLibrary("swscale"); System.loadLibrary("avcodec"); @@ -14,4 +21,10 @@ public class Ffmpeg { } public native String getVersion(); + public native int init(int width, int height); + public native int flush(); + public native int close(); + public native int process(byte[] data); + public native int play(Object surface, String fname); + public native int push(Object surface); }