Giter VIP home page Giter VIP logo

Comments (12)

iizukanao avatar iizukanao commented on August 27, 2024

Thanks. Could you provide a swf or html that causes this error? Some users have reported the same kind of error, but I have been failed to reproduce the error.

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

I don't use swf or html, I implement iOS feed camera streaming via RTMP to node server.
This is what I use for iOS https://github.com/jgh-/VideoCore to do rtmp feed

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

I tried use pure js instead of coffee, then I got this error

/Users/nvcken/think/node-rtsp-rtmp-server/server.js:47
    throw err;
    ^

Error: Supplied key is too small
    at Error (native)
    at DiffieHellmanGroup.dhComputeSecret [as computeSecret] (crypto.js:414:26)
    at /Users/nvcken/think/node-rtsp-rtmp-server/rtmp.js:1229:41
    at /Users/nvcken/think/node-rtsp-rtmp-server/rtmp_handshake.js:160:16
    at InternalFieldObject.ondone (/Users/nvcken/think/node-rtsp-rtmp-server/rtmp_handshake.js:139:14)

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

I rebuild and run twice again Error: Unknown AMF0 data type: 108 always occurs -> maybe this is main error, we can skip Error: Supplied key is too small

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Thanks! I've reproduced the error and now I'm investigating the problem.

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

素晴らしい

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

😄 I've fixed AMF0 parser and it should work with VideoCore library. However, VideoCore has a bug too, and it sends invalid AMF0 data (created a pull request). So, the server still prints error message, but the streaming will work. Please give it a try.

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

Now Error: Unknown AMF0 data type: 108 is gone, but many times get Error: Supplied key is too small error then server crash.
When get that error I need to start server again, then restart iOS app too, then streaming works again.
p/s: I also updated code from your PR on VideoCore

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

OK, I've just fixed that problem too. Please pull the latest code from master.

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

Wow, tried it. Cool.
I am curiously how did you reproduced with VideoCore and then found out where problem so fast.
Did you reproduce by the way integrate VideoCore to a blank Xcode project (add some code capture camera) then build to device ?

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Thanks 😃
I just used a sample project included in VideoCore (SampleBroadcaster-Swift) and ran it on iOS device. Your assistance greatly helped, too!

from node-rtsp-rtmp-server.

nvcken avatar nvcken commented on August 27, 2024

👍 issue closed

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.