Skip to content
Projets

À propos

vlc-android : la dernière compilation de la bibliothèque de lecture vidéo. Elle prend en charge l’enregistrement de l’écran. Les étoiles sont les bienvenues.

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Vlc-sdk-lib

构建切换大小屏播放器 推荐

转码视频的命令行工具 推荐

在RecyclerView中播放器的实现 参考


实现的功能

能支持大部分主流格式
软硬解切换.支持vlc指令  < transform:rotation=90>
当前缓冲百分比 
视频(音频)播放速度可调,任意速度可调. (0.25-4)   < player.setRate(float rate); >
加载字幕(addSlave),设置镜面等
实时录制视频

使用方法

<java>
VlcVideoPlayer   player = new VlcVideoPlayer(context);
                 player.setMediaListenerEvent(new MediaListenerEvent());
                 player.startPlay(path);

<其它>
 vlc原生截图      new RecordEvent().takeSnapshot(mediaPlayer,"保存图片的地址或目录",width,height);
  
  字幕功能  mMediaPlayer.addSlave(Media.Slave.Type.Subtitle, "字幕文件地址", true);
  
  录像功能
        vlcVideoView.getMediaPlayer().record(directory) //start
        vlcVideoView.getMediaPlayer().record(null) //stop

#引用库文件

   dependencies {
   
        //1.扩展功能仓库  
        //在引用官方标准lib仓库中增加新功能如录像截图自定义播放器等  
        //支持16KB内存页
         implementation("io.github.mengzhidaren:vlc-android-sdk:3.6.3")
     
        //  vlc官方标准lib仓库 详细内容参考vlc官方仓库
        implementation("org.videolan.android:libvlc-all:3.6.3")

   }
 
    ndk {
        //支持的abi    可选 精简的库
        abiFilters 'armeabi-v7a'//,'x86_64','arm64-v8a','x86'
    }
         

Donate

Alipay:

谢谢支持我会和官方同步更新

VLC for Android

This is the official Android port of VLC.

License

VLC for Android is licensed under GPLv3

Build

You will need a recent Linux distribution to build VLC. It should work with Windows 10, but no official support for this.

Check our AndroidCompile wiki page

Contribute

VLC is a libre and open source project, we welcome all contributions.

Pull requests

Pull requests can be proposed on github mirror as code.videolan.org is reserved to VideoLAN members

3.0.0以前的win10编译记录(编译问题不要留言给我,自已google吧)

(下面是我自已以前在 3.0.0版本之前的编译记录 )

vlc-android的代码在  linux  ubuntu64  16.4  中搭建编绎环境
android-sdk 版本 api25
ndk版本 r13b
java 版本 8
vlc-android 版本 3.0.0-v2.1.0版本

1.在win10中安装的 VMware Workstation Pro 安装ubuntu 64 16 的最新版

2.安装 linux 版的 jdk sdk 最新版

安装包管理工具和开源库等
参考:https://wiki.videolan.org/AndroidCompile/

## sudo apt-get install automake ant autopoint cmake build-essential libtool \
     patch pkg-config protobuf-compiler ragel subversion unzip git
  1. ubuntu 64 vlc-android环境设置
sudo gedit /etc/profile
$source /etc/profile

export NDK=/opt/sdk/android-sdk-linux/ndk-bundle
export ANDROID_NDK=/opt/sdk/android-sdk-linux/ndk-bundle
export PATH=${ANDROID_NDK}:$PATH
export ANDROID_SDK=/opt/sdk/android-sdk-linux
export PATH=$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$PATH

export JAVA_HOME=/opt/sdk/jdk1.8.0_101
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:${JAVA_HOME}/lib/tools.jar
export PATH=${JAVA_HOME}/bin:$PATH

export ANDROID_ABI=armeabi-v7a   //对应的cpu平台 .so包
#export ANDROID_ABI=x86   //编译对应的平台

DEMO效果预览

image

Explorer des projets similaires

Chargement…