Compile vlc-android under "Vlc-android" Mac

Source: Internet
Author: User

Objective

Suddenly want to full vlc-android, and then the next play to see, here to record points encountered problems.

StatementWelcome reprint, but please keep the original source of the article:)Blog Park: http://www.cnblogs.comfarmer Uncle: http://over140.cnblogs.com

Body

The vlc-android version of this article is: 2.2.0-pre1 Weatherwax

Generally according to the official website to the line (https://wiki.videolan.org/AndroidCompile), the following are several problems encountered:

1. Environment variable Configuration

Export android_ndk=/users/nmbb/android/android-ndk-r9d
Export ANDROID_SDK=/USERS/NMBB/ANDROID/ANDROID-SDK-MACOSX
Export path=PATH: Android_sdk/platform-tools: $ANDROID _sdk/tools
Export android_abi=armeabi-v7a

2. Compilation error

If you encounter sed:re Error:illegal byte sequence, add export lang=c.

3. Do not compile jar and apk

Comment out the following three lines of makefile:

# git rev-parse--short HEAD > $ (SRC)/assets/revision.txt

# ./gen-env.sh $ (SRC)

#(VEbsed (SRC) && ant(ANT Opts(Ant_target)

4, less iomx-jbmr2.so and iomx-kk.so

Makefile the following line of explanation

Libvlc_libs + = Libiomx-kk LIBIOMX-JBMR2

But note:

# The following IOMX Libs is used for DEBUG only.
# (after Android Jelly beans, we prefer to use MEDIACODEC instead of IOMX)

5. Let VLC show the buffering progress

5.1 The following line of the annotation EventHandler:

public static final int mediaplayerbuffering = 0x103;

5.2 Modifythe jni/libvlcjni.c, add the following line 389 lines:

Static const libvlc_event_type_t mp_events[] = {
Libvlc_mediaplayerplaying,
Libvlc_mediaplayerpaused,
Libvlc_mediaplayerendreached,
Libvlc_mediaplayerstopped,
Libvlc_mediaplayervout,
Libvlc_mediaplayerpositionchanged,
Libvlc_mediaplayertimechanged,
Libvlc_mediaplayerencounterederror,
libvlc_mediaplayerbuffering
};

Then recompile the build so. By the end of the article, this has not been measured, refer to this article:

Vlc-android get responses to various events such as mediaplayerencounterederror,mediaplayerbuffering http://blog.csdn.net/memegood123/ article/details/8769008

6. Series Articles

Simple example of "vlc-android" vlc-android

End

First, regardless of VLC's function, at least the API design sucks.

Compile vlc-android under "Vlc-android" Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.