Giter VIP home page Giter VIP logo

Comments (7)

nocturnalprelude avatar nocturnalprelude commented on August 15, 2024

Having often the same issue. I noticed in logcat (VideoStream tag) that sometimes Surface Destroyed is called soon after Surface Changed, so when you start streaming nothing works and the output is 'sending message to a handler on a dead thread'.
Can't solve it yet.

from libstreaming.

brunosiqueira avatar brunosiqueira commented on August 15, 2024

I solved it by making the instantiation of the handler stop being static and being created for each Session.java instance.

from libstreaming.

nocturnalprelude avatar nocturnalprelude commented on August 15, 2024

@brunosiqueira very helpful, many thanks! I couldn't get out from this issue...

from libstreaming.

fyhertz avatar fyhertz commented on August 15, 2024

Thank you bruno, I accepted your patch, I have a little concern though:

Do you know if the thread created for the Session is ended/destroyed once the session object is garbage collected? Because if it's not then we have a memory leak issue here :/

from libstreaming.

fyhertz avatar fyhertz commented on August 15, 2024

I have actually rewrote that, to respect the naming conventions, and I actually realized that getLooper() is blocking until the LooperThread is fully ready, so the CountDownLatch is not needed.

from libstreaming.

brunosiqueira avatar brunosiqueira commented on August 15, 2024

Hey, Simon. I have seen the change in the code and I have updated that in
my app. It's working properly.
I researched for a while and couldn't get to a conclusion regarding the
garbage collector. I'll keep looking for it and I'll let you know.
Cheers,

Java é uma ilha, Ruby é uma pedra, Phyton é um réptil, C é uma letra e AJAX
é um detergente

2014-05-28 13:20 GMT-03:00 Simon [email protected]:

I have actually rewrote that, to respect the naming conventions, and I
actually realized that getLooper() is blocking until the LooperThread is
fully ready, so the CountDownLatch is not needed.


Reply to this email directly or view it on GitHub
#31 (comment).

from libstreaming.

brunosiqueira avatar brunosiqueira commented on August 15, 2024

Hey, Simon.

I've been trying to figure out if it is possible to record in the sd card
and stream at the same time using libstreaming. Have you done it?

Thank you very much,

Bruno Siqueira

2014-06-06 13:22 GMT-03:00 Bruno [email protected]:

Hey, Simon. I have seen the change in the code and I have updated that in
my app. It's working properly.
I researched for a while and couldn't get to a conclusion regarding the
garbage collector. I'll keep looking for it and I'll let you know.
Cheers,

Java é uma ilha, Ruby é uma pedra, Phyton é um réptil, C é uma letra e
AJAX é um detergente

2014-05-28 13:20 GMT-03:00 Simon [email protected]:

I have actually rewrote that, to respect the naming conventions, and I

actually realized that getLooper() is blocking until the LooperThread is
fully ready, so the CountDownLatch is not needed.


Reply to this email directly or view it on GitHub
#31 (comment)
.

from libstreaming.

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.