Soft and hard decoding implementation of android ffmpeg (ffmpeg 3.3.4)
1. Soft decoding implementation:
JNIEXPORT int JNICALL Java_h264_Native_PlayLocalVideo(JNIEnv *env, jobject obj,jstring inputFilePath_,jobject surface) {
const char *path = env->GetStringUTFChars(inputFilePath_, 0);
av_log_set_callback(ffmpeg_android_log_callback);
av_register_all();
int ret;
AVFormatContext *fmt_ctx ...
Added by ericorx on Fri, 01 May 2020 21:12:02 +0300
Use and understanding of surface view
Drawing interface stuck has always been the pain of Android developers. Today, let's look at surface view, known as sub thread drawing, double buffering mechanism, no stuck.
SurfaceView has the following features:
1 have independent drawing surface;
2. We need to dig a hole in the host window t ...
Added by bob_dole on Thu, 31 Oct 2019 07:01:14 +0200
day13_Common Network Request Patterns in Android
Common Network Request Patterns in Android
HttpUrlConnection
1.get request
2.post request
3. Download Web Video/Music/Pictures to SD Card
I. Concept:
1.http: Hypertext Transfer Protocol (client and server), Application Layer Protocol
2.html: Hypertext Markup Language
3.xml: Extensible Markup LanguageI ...
Added by metalblend on Fri, 19 Jul 2019 16:19:12 +0300
Method of Android adapting bottom virtual keys
Recently, when adapting the project, it was found that some of the mobile phones (such as Huawei Mobile Phone) had virtual keys at the bottom. Because of the existence of virtual keys, some of the interfaces were blocked. Because of the need for full screen display, the virtual keys hiding method was called to hide them. However, the following ...
Added by mahakmx on Wed, 10 Jul 2019 23:20:46 +0300
camera of android multimedia api collects raw video data
"android Multimedia api" series is a series of media-related APIs which are often used in the integration of android development. The main contents of multimedia development include audio, video recording and playing, camera operation, recording operation, streaming media, live broadcasting, push-flow, pull-flow and so on. In recent ...
Added by lostprophetpunk on Fri, 17 May 2019 20:57:39 +0300