Giter VIP home page Giter VIP logo

screen-stream's Introduction

screen-stream

screen stream

此工程分为两个target, screen-stream 用来直播屏幕并进行音频通话

screen-stream-watch 用来观看屏幕直播以及音频通话

screen-stream

RPScreenRecorder

这里主要用了RPScreenRecorder 的两个方法 startCaptureWithHandler 和 stopCaptureWithHandler

startCaptureWithHandler 开启之后会收到屏幕的数据 并通过DotEngine推送出去

DotEngine

这里主要是使用了DotVideoCaptuer, DotVideoCaptuer 可以把CVPixelbuffer 推送出去, CVPixelbuffer 目前只支持 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange和 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange

更多详细的使用文档在 http://docs.dot.cc

screen-stream-watch

screen-stream-watch的作用是接搜远程的音视频并只发布本地的音频 所以本地DotStream 初始化的时候只需要初始化音频

    localStream = [[DotStream alloc] initWithAudio:YES
                                             video:NO
                                          delegate:self];

另外需要注意的是如果要完整显示对方屏幕需要设置

 [remoteStream.view setScaleMode:DotVideoViewScaleModeFit];

更多详细的使用文档在 http://docs.dot.cc

screen-stream's People

Contributors

notedit avatar

Watchers

James Cloos avatar Kadir Ölmez 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.