Skip to content

Latest commit

 

History

History
92 lines (73 loc) · 5.01 KB

README.Android.md

File metadata and controls

92 lines (73 loc) · 5.01 KB

MDK: Multimedia Development Kit

Features

About SDK for Android

SDK is built with

SDK can be used by any C or C++11 compiler, e.g. g++, clang

dsym files are debug symbols, not required to deploy your programe.

OpenGL Context

  • Create by mdk: use SurfaceView's Surface to initialize rendering thread
  • Created by user: use GLSurfaceView, TextureView or whatever
  • FFmpeg
  • MediaCodec: FFmpeg mediacodec implementation
  • AMediaCodec: builtin mediacodec implementation, using libmediandk or java api

MediaCodec/AMediaCodec decoder will not be destroyed if app go to background, and continues to work when resumed.

Audio Renderers

  • OpenSLES
  • AudioTrack (default)

Data Source

  • content:
  • android.resource:
  • assets:

Use in CMake Projects

	include(mdk-sdk-dir/lib/cmake/FindMDK.cmake)
	target_link_libraries(your_target PRIVATE mdk)

Qt qmake project

include($$MDK_SDK_DIR/mdk.pri)

Recommended settings

    SetGlobalOption("JavaVM", JvmPtr); // REQUIRED
    player.setDecoders(MediaType::Video, {"AMediaCodec", "FFmpeg", "dav1d"});

Live streams (RTSP, RTMP etc.) low latency

    player.setProperty("avformat.fflags", "+nobuffer");
    player.setProperty("avformat.fpsprobesize", "0");

Source code:

Copyright (c) 2016-2024 WangBin(the author of QtAV) Free for opensource softwares, non-commercial softwares, flutter, QtAV donors and contributors.