Coder Social home page Coder Social logo

Comments (4)

kelmer44 avatar kelmer44 commented on July 20, 2024

Ok I checked and there is none but do you know how to implement that with librtmp? On the native code itself?

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024

You can count how many bytes you have sent and divide it into time. If there is slow internet connection, writeVideo and writeAudio files takes more time to return for the RTMPMuxer

from librtmp-client-for-android.

kelmer44 avatar kelmer44 commented on July 20, 2024

Thanks I did just that successfully :)

Is it also possible to know when the client is disconnected? I know there is a isConnected method but is it possible to have a callback whenever the client gets disconnected?

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024

In our app, we have a timer, it shows the elapsed time in the screen and it is updated in every second. In addition, we check if client is still connected to the server in this timer task, you may use a similar aproach as well.

Moreover, if it is critical for you, we may think adding a listener interface to the library that is called when clients get disconnected.

Closing issue, please open it, if you have an issue.

from librtmp-client-for-android.

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.