Code Monkey home page Code Monkey logo

zblivebarrage's Introduction

ZBLiveBarrage

直播应用中一套弹幕实现方案。

弹幕效果:

弹幕效果图.gif

弹幕君说:

  • 我会飞~~~(gun~,你咋不上天!!);
  • 我的大小你做主;
  • 我飞的速度你来定,让我飞多快我飞多快(PS:恩!真听话);
  • 我的衣服你来买(弹幕样式自定义);
  • 我们弹幕家族自带磁场从来不会叠加碰撞的哦(⊙o⊙);
  • 你点我我就告诉你你点的是我而不是我爸(superView)也不会是我的兄弟姐妹O(∩_∩)O~:

弹幕家谱.png

  • 直播弹幕 ZBLiveBarrage 最懂你!!

目录结构:

目录结构.png

技术剖析:

详细分析请移步至简书地址

小结

这一套弹幕实现核心代码在于弹幕碰撞监测那部分,是不是很简单那?

如果觉得对您有所帮助,点击 Star 给小弹幕以资鼓励,不骄傲!

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'ZBLiveBarrage'。
  2. 执行 pod install 或 pod update。
  3. 具体应用请下载项目查看。

手动安装

下载 ZBLiveBarrage 文件夹内的所有内容。 将 ZBLiveBarrage 下四个源文件添加(拖放)到你的工程。

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.