Giter VIP home page Giter VIP logo

Comments (2)

iizukanao avatar iizukanao commented on August 27, 2024

Yes! Please look for crossdomain.xml in http.coffee (line 1549). You can add HTTP API somewhere around there. However, I will change server.coffee drastically to add support for multiple streams in the coming weeks, so please keep your code simple, or postpone your work until my code is pushed.

Video resolution

detectedVideoWidth and detectedVideoHeight.

Number of clients

clientsCount is the number of currently connected clients.

Who is publishing

There are three ways to publish streams: RTMP, RTSP, and internal protocol. Though there is no dedicated variable to distinguish them, you can add some code to places that are executed when the server starts to receive streams (sorry for the messy code!):

RTMP

Line 129

rtmpServer.on 'video_start', ->
  # here

RTSP

Line 2005

else if req.method is 'RECORD'
  # here

Internal protocol

Line 463

videoControlReceiver.on 'packet', (buf) ->
  # here

from node-rtsp-rtmp-server.

the-eater avatar the-eater commented on August 27, 2024

Looking through the code, I think it seems better to wait till you have multiple streams done as the main thing is getting the streams, this is in the current implementation totally ignored. I don't know what the idea is for the new code but having a class Publisher or something like that would be really rad.

from node-rtsp-rtmp-server.

Related Issues (20)

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.