Code Monkey home page Code Monkey logo

ndkplayer's Introduction

NDKPlayer

Android NDK直播框架,使用熊猫tv直播流(仅用于学习交流)

要点:

  • 1.FFmpeg作为底层播放框架
  • 2.在Linux系统中编写shell脚本,根据个人需求添加相应功能(例如本项目只是播放,所以无编码功能)
  • 3.shell脚本中使用Liunx-NDK中的arm-linux-androideabi-gcc将FFmpeg交叉编译成为Android可用的.a静态库(可选择动态库,但本人更倾向于静态库,最终apk大小静态库要小于动态库,原因可自行百度)
  • 4.在Android项目中添加静态库,使用Cmake构建(不建议使用mk)
  • 5.线程安全的队列
  • 6.native层创建JabaCallHelper类将native层的相关操作回调到java层,创建AudioChannel类和VideoChannel类对音视频分别进行处理

类结构:

image

时间节点:

  • 2018-09-05 项目上传
  • 2018-09-11 搭建native框架,包括相关回调,封装音视频相关类,解码器调试等

项目初期,后续将不断完善......

ndkplayer's People

Contributors

tanglongfei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.