Code Monkey home page Code Monkey logo

cainplayer's Introduction

CainPlayer

基于ffplay逻辑实现的简单播放器。该播放器最开始是为了CainCamera中的短视频编辑而造的播放器,目前播放器还是个demo,离真正的商用播放器还差得远,各种异常状态都还没考虑进去。对于直播点播来说,个人推荐ijkplayer,都是基于ffplay实现的播放器,ijkplayer着重对网络流进行了优化,目前各大公司的直播点播的播放器基本采用ijkplayer或者基于ijkplayer改造而来,属于一个久经考验的播放器。

支持部分ffplay命令

通过使用 setOption 方法指定参数:

指定使用MediaCodec进行解码
mCainMediaPlayer.setOption(CainMediaPlayer.OPT_CATEGORY_PLAYER, "vcodec", "h264_mediacodec");

截图

本地视频

网络视频

讲解文章

第零章 基础公共类的封装

第一章 播放器初始化与解复用流程

第二章 音视解码器和视频解码器实现

第三章 音频输出 —— OpenSLES

第四章 音频重采样与变速变调处理

第五章 视频同步渲染输出

cainplayer's People

Contributors

cainkernel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.