Giter Site home page Giter Site logo

openrtmfp / arcusnode Goto Github PK

View Code? Open in Web Editor NEW
175.0 175.0 36.0 274 KB

A RTMFP Rendevouz Service For Peer Assisted Networking With Adobe Flash on Node JS

License: GNU General Public License v3.0

Shell 0.27% Python 0.46% JavaScript 33.78% ActionScript 61.65% C++ 3.83%

arcusnode's People

Contributors

arcusdev avatar eden avatar kommander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcusnode's Issues

Socket message handler error: Error: Invalid hex string

I wish I could provide more information as to what caused this but hopefully you have a better idea than I do:

error [Mon Sep 12 2011 18:43:17 GMT+0000 (UTC)]  Socket message handler error: Error: Invalid hex string
    at SlowBuffer.hexWrite (buffer.js:115:11)
    at Buffer.write (buffer.js:343:25)
    at new Buffer (buffer.js:252:26)
    at ipv6ToBytes (/home/matt/arcus/ArcusNode/lib/rtmfp.js:1024:12)
    at [object Object].readAddress (/home/matt/arcus/ArcusNode/lib/rtmfp.js:1036:26)
    at [object Object].readMessage (/home/matt/arcus/ArcusNode/lib/rtmfp.js:403:45)
    at [object Object].readPacket (/home/matt/arcus/ArcusNode/lib/rtmfp.js:84:22)
    at /home/matt/arcus/ArcusNode/lib/arcus_node.js:243:30
    at Socket.<anonymous> (/home/matt/arcus/ArcusNode/lib/arcus_node.js:867:9)
    at Socket.emit (events.js:70:17)
D8 47 0E 0D DC 1D 8D 92 E8 0A 16 10 00 63 00 02 .G...........c..
03 01 11 00 00 1C 4F 00 02 00 0B 73 65 74 50 65 ......O....setPe
65 72 49 6E 66 6F 00 00 00 00 00 00 00 00 00 05 erInfo..........
02 00 11 31 39 32 2E 31 36 38 2E 31 2E 32 3A 35 ...192.168.1.2:5
35 31 31 38 02 00 2A 5B 32 30 30 31 3A 30 3A 35 5118....2001:0:5
65 66 35 3A 37 39 66 64 3A 33 65 3A 33 62 65 35 ef5:79fd:3e:3be5
3A 61 30 37 62 3A 37 36 39 33 5D 3A 35 35 31 31 :a07b:7693.:5511
39 FF FF FF                                     9...

How about RTMP relaying to RTMFP?

Adobe Media Flash Live Encoder supports RTMP only, and a RTMFP publisher peer might be behind an NAT which blocks the P2P connection to the publisher peer. If ArcusNode can accept RTMP stream and republishes the stream to RTMFP stream, that will really good.

Error: Cannot find module '../build/Release/rtmfp.node'

My version of node is:
v0.9.4-pre

ArcadusNode version is the one just downloaded today.

root@phcdevel:~/ArcusNode-master# node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node_modules/
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.014s)
Waf: Entering directory /root/ArcusNode-master/build' Waf: Leaving directory/root/ArcusNode-master/build'
'build' finished successfully (0.004s)

root@phcdevel:~/ArcusNode-master# node service.js

module.js:340
throw err;
^
Error: Cannot find module '../build/Release/rtmfp.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/root/ArcusNode-master/lib/packet.js:20:13)
at Module._compile (module.js:454:26)
at Object.Module._extensions..js (module.js:472:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

Socket message handler error: TypeError: Cannot set property '1' of undefined

error [Tue Sep 20 2011 05:02:01 GMT+0000 (UTC)]  Socket message handler error: TypeError: Cannot set property '1' of undefined
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:534:30
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:245:7
at Socket.<anonymous> (/home/matt/arcus/ArcusNode/lib/arcus_node.js:867:9)
at Socket.emit (events.js:70:17)
at UDP.onMessage [as onmessage] (dgram_uv.js:307:10)
02 58 65 0C 02 F4 8D 40 5F 4A B4 10 00 2D 80 03 .Xe....._J...-..
01 01 05 00 54 43 04 02 00 11 09 D0 D6 73 00 02 ....TC.......s..
00 04 70 6C 61 79 00 00 00 00 00 00 00 00 00 05 ..play..........
02 00 08 6D 79 73 74 72 65 61 6D FF FF FF FF FF ...mystream.....
FF FF FF FF                                     ....

很好

不错啊 很喜欢这个

push messages from ArcusNode to Flash client

Hello! Is it possible to send a text message / command from server to a client? In such a way that it'll be processed by NetConnection event handlers or by NetGroup.

Seems like for now it's only possible to respond to client's command. What I'm trying to do is RTMFP chat with chat rooms. Obviously ability to push data would be very helpful.

Cumulus seems to be able to push a message. However as far as I understand they do it as raw AMF message which likely to be ignored by NetConnection API, is it true?

The best would be of course to be able to send message to a NetGroup.

Best
Denis

node 0.5.7 - Socket message handler error: Error: Invalid arguments for Packet

error [Sat Sep 17 2011 17:18:55 GMT+0000 (UTC)]  Socket message handler error: Error: Invalid arguments for Packet
at new <anonymous> (/home/matt/arcus/ArcusNode/lib/packet.js:48:11)
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:212:15
at Socket.<anonymous> (/home/matt/arcus/ArcusNode/lib/arcus_node.js:867:9)
at Socket.emit (events.js:70:17)
at UDP.onMessage [as onmessage] (dgram_uv.js:307:10) 
11 85 F4 CB 0C 99 24 16 1D 1C D0 DD BD CB 74 60 ..............t.
B2 A0 5B 3D 01 2F 8B 72 79 E0 E8 3B 6B A3 0E 10 ...../.ry...k...
0E A4 15 B1 38 7A DE B9 90 B6 99 FB 07 5B 64 3C ....8z........d.
64 43 31 6B B1 67 26 E8 93 30 CD 8C 1F 54 77 1D dC1k.g...0...Tw.
48 DA EA 6E                                     H..n

Permanent connection doesnt work

Hey,

if i change the settings like this:
settings.manageInterval = 24 * 60 * 60;
settings.connectionTimeout = (24 * 60 * 60)*1000;
settings.clientKeepalive = 1000;
settings.serverKeepalive = 1000;
settings.maxKeepalives = 30000;

i still get a timeout in like 2minutes.

anyone knows how i can change the settings to like 24h ?

Full script:
http://pastebin.com/b4yf3AcK

ReferenceError: _sendResponse is not defined

When trying to register a custom command I get this error:

ReferenceError: _sendResponse is not defined
at [object Object].commandResult (/var/www/node/ArcusNode/lib/arcus_node.js:676:5)
at Array.0 (/var/www/node/ArcusNode/lib/arcus_node.js:442:21)
at EventEmitter._tickCallback (node.js:192:40)

Manage cycle error: TypeError: Cannot read property 'touched' of undefined

Using latest from git, not sure what's causing this:

/home/matt/arcus/ArcusNode/lib/arcus_node.js:799
if(nc.state != NetConnection.CLOSING) {
         ^
TypeError: Cannot read property 'state' of undefined
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:799:10
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:896:7
at [object Object].forEach (/home/matt/arcus/ArcusNode/lib/map.js:92:8)
at [object Object].stop (/home/matt/arcus/ArcusNode/lib/arcus_node.js:895:21)
at EventEmitter.<anonymous> (/home/matt/node/cam.js:131:7)
at EventEmitter.emit (events.js:64:17)
at SignalWatcher.callback (node.js:320:45)


error [Tue Sep 13 2011 19:49:41 GMT+0000 (UTC)]  Manage cycle error: TypeError: Cannot read property 'touched' of undefined
at /home/matt/arcus/ArcusNode/lib/arcus_node.js:109:21
at [object Object].forEach (/home/matt/arcus/ArcusNode/lib/map.js:92:8)
at Timer.callback (/home/matt/arcus/ArcusNode/lib/arcus_node.js:107:23)

OS X Lion installation

Problem description

After installing ArcusNode on Mac OS X Lion system, it won't run and raise following error:

$ node service.js 
module.js:485
  process.dlopen(filename, module.exports);
          ^
Error: dlopen(/Users/ignatev/Documents/Coding/OpenSource/ArcusNode/ArcusNode/build/Release/rtmfp.node, 1): no suitable image found.  Did find:
    /Users/ignatev/Documents/Coding/OpenSource/ArcusNode/ArcusNode/build/Release/rtmfp.node: mach-o, but wrong architecture
    at Object.Module._extensions..node (module.js:485:11)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/ignatev/Documents/Coding/OpenSource/ArcusNode/ArcusNode/lib/packet.js:20:13)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

How to reproduce

  1. Install nodejs 0.8.8 from sources (configure --prefix=/usr/local/bin to prevent "Checking for node prefix: not found" during building of ArcusNode).
  2. Install node-waf 1.5.16 from sources too.
  3. Download ArcusNode and run node-waf configure build:
$ node-waf configure build
Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : ok /usr/local/bin 
Checking for node prefix                 : ok /usr/local 
'configure' finished successfully (0.048s)
Waf: Entering directory `/Users/ignatev/Documents/Coding/OpenSource/ArcusNode/ArcusNode/build'
Waf: Leaving directory `/Users/ignatev/Documents/Coding/OpenSource/ArcusNode/ArcusNode/build'
'build' finished successfully (0.015s)

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.