Coder Social home page Coder Social logo

hk_videoplayerdemo's Introduction

HK_VideoPlayerDemo

使用IJKMediaFramework做视频列表播 IJKMediaFramework.framework过大,无法上传,需自行下载或去本地查找 需要引入的依赖库: UIKit.framework VideoToolbox.framework QuartzCore.framework OpenGLES.framework MobileCoreServices.framework MediaPlayer.framework libz.tbd libbz2.tbd CoreVideo.framework CoreMedia.framework CoreGraphics.framework AVFoundation.framework AudioToolbox.framework libc++.tbd

视频列表播放 cell 主要包含: 1、cell 的 UI 控件:标题、分享按钮、VideoListPlayer等 2、VideoListPlayer(继承自 UIView) 3、VideoListPlayer 主要包含: 1、 IJKPlayer(三方的核心播放工具) 2、VideoPlayerControlView(播放进度控制、全屏) 通过 silder 的操作状态的监听控制视频流的当前播放时间 self.player.currentPlaybackTime =self.playerControl.progressSlider.value; 通过IJKPlayer播放器 注册通知监听获取视频的播放进度,同时控制VideoPlayerControlView的 silder进度

视频列表在播放状态滑动机制: 1、定义一个currentCell, 2、将_videolistPlayer仅加到当前 cell 上 3、点击播放按钮时 1、_videolistPlayer从上一个 cell 的父view 移除但不销毁 2、取到当前播放地址开始加载3、开始播放视频时在新的当前cell 即currentCell 重新添加_videolistPlayer再进行播放

视频详情页 可将正在播放中的_videolistPlayer传给详情页,持续播放进度 返回时将 player 销毁

hk_videoplayerdemo's People

Contributors

hk13581836891 avatar

Stargazers

Wenchao Hu avatar

Watchers

James Cloos 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.