Git Product home page Git Product logo

Comments (6)

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Hi,
From the crash trace, all I can see is: there is a crash in the native part. That's not enough information to start looking at it.
Could you get all traces (not only the traces from your application)?

There has been a fix in the last version of StreamPack in the close of the RTMP socket. Which version do you use? Are you up to date?

from streampack.

moliyadi avatar moliyadi commented on July 19, 2024

Thank you for your reply, I found the problem, before rtmpdroid v1.0.4 I use this

var tcUrl = url
val index = url.lastIndexOf("/")
if (index > 0) {
      tcUrl = url.substring(0, index)
}
socket.connect("$url tcUrl=$tcUrl live=1 flashver=FMLE/3.0\\20(compatible;\\20FMSc/1.0)")

instead of

socket.connect("$url live=1 flashver=FMLE/3.0\\20(compatible;\\20FMSc/1.0)")

because earlier I tested that publish would fail if I didn't customize tcUrl.

But with the latest code, even if I don't manually specify tcUrl, the stream should work, thanks very much.

PS: I think it would be nice to improve rtmpdroid and support a custom tcUrl method, thanks.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Hi,

I made changes in connect(String) to avoid a crash on close or a memory loss. That explains the change of behavior. I guess I won't avoid to have that memory loss.

Why do you have to customize tcUrl?
I also see that you directly call socket.connect the RtmpProducer does not satisfied you requirements?

from streampack.

moliyadi avatar moliyadi commented on July 19, 2024

Why do you have to customize tcUrl?
I also see that you directly call socket.connect the RtmpProducer does not satisfied you requirements?

Because before rtmpdroid v1.0.4, there seems to be a problem with tcurl, which contains the stream part of the push stream url, like this:

publish url: rtmp://192.168.124.203:19350/live/aaaa

WX20221116-084305

Publishing a stream to the rtmp server(like SRS or ZLMediakit) using the request above would fail, so I set tcUrl manually.

But with the latest code, tcUrl seems to be working properly(liek this), so I remove the customization, thank you.

publish url: rtmp://192.168.124.203:19350/live/livestream

WX20221116-084355

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Ok. I get why you needed to set tcUrl.
Let's get back to your crash.
It is a native crash so most of the stacktrace is not displayed.
Could you get all traces from adb logcat (not only the traces from your application)?

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

Ok, this seems fixed.
Please reopen the issue if it is not the case.

from streampack.

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.