Git Product home page Git Product logo

lmijkplayer's Introduction

LMIJKPlayer

基于IJKPlayer,支持横屏、竖屏,上下滑动调节音量、屏幕亮度,左右滑动调节播放进度, 支持横竖屏UI不同的完整播放器Demo

由于IJKPlayer包过大, 没有放在项目里, 需要的童鞋请自行打包, 拖到项目中

特性

  • 支持横、竖屏切换和展示不同UI
  • 左侧1/2位置上下滑动调节屏幕亮度(模拟器调不了亮度,请在真机调试)
  • 右侧1/2位置上下滑动调节音量(模拟器调不了音量,请在真机调试)
  • 支持滑动屏幕快进快推
  • 支持在当前页面播放新的视频
  • 支持显示上次播放记录
  • 支持从某个位置开始播放
  • 支持播放页横竖屏, 其他页面仅支持竖屏

要求

  • iOS8+
  • Xcode8+

播放器设计模块划分

播放器组成部分的大概划分如下图: 组成划分

  • 本Demo中为了使用方便, 将播放器的一些状态记录在LMPlayerStatusModel中, 优点是方便View层获取, 但缺点显而易见, 容易被篡改, 有待以后优化
  • LMPlayerModel中是存放的是播放器所需的数据, 可详见属性解释

效果演示

演示效果
演示效果

如果想使用AVPlayer编写播放器

请点击这里

参考链接

https://github.com/renzifeng/ZFPlayer

联系我

lmijkplayer's People

Contributors

lixiaonan avatar

Watchers

 avatar  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.