haoxiangtt / movieplayerplus Goto Github PK
View Code? Open in Web Editor NEW一个强大的播放器,既可以使用vlc播放视频,也可以使用默认的播放器播放;同时也是一个基于mvp架构的轻量级框架。最近加入了两个基于OpenGL渲染视频的两个控件。觉得可以的话还请给个star^_^
一个强大的播放器,既可以使用vlc播放视频,也可以使用默认的播放器播放;同时也是一个基于mvp架构的轻量级框架。最近加入了两个基于OpenGL渲染视频的两个控件。觉得可以的话还请给个star^_^
视频播放器控件说明: 引入方式:compile 'com.bfy:movie-player-plus:1.0.0' 如果想使用vlc解码器还需导入一下依赖: compile 'de.mrmaffen:vlc-android-sdk:3.0.0' 混淆规则: -keep class org.videolan.libvlc.**{*;} 本项目集成了vlc和系统默认两种视频解码框架,分别进行了封装,主要封装的控件有4种: 使用vlc解码框架的: 1、VLCVideoView:使用surfaceView渲染视频; 2、GlVlcVideoView:使用GlSurfaceView渲染视频; 使用系统解码框架的: 1、VideoView:使用surfaceView渲染视频; 2、GlVideoView:使用GlSurfaceView渲染视频。 简单集成方式: 在layout布局文件中直接声明控件: <cn.richinfo.player.view.GlVideoView android:id="@+id/def_video" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center"/> 在代码中找到控件: MediaPlayerController player = (MediaPlayerController)findViewById(R.id.def_video); player.initPlayer(url);//初始化播放器 player.start();//开始播放 作者:ouyangjinfu 注:该项目2019年起已经停止维护
第一次调用start有效,第二次调用start好像无效
垃圾人做垃圾东西
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.