openrtmfp / arcusnode Goto Github PK
View Code? Open in Web Editor NEWA RTMFP Rendevouz Service For Peer Assisted Networking With Adobe Flash on Node JS
License: GNU General Public License v3.0
A RTMFP Rendevouz Service For Peer Assisted Networking With Adobe Flash on Node JS
License: GNU General Public License v3.0
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...
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.
the old package.json only works for the old node-waf plugin. It doesn't exits anymore in node.js. please replace the package.json with an compatible node-gyp:
node-gyp configure build
Can I publish the rtmp-stream and rtmfp-stream with the same way. Thanks.
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)
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 ....
不错啊 很喜欢这个
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
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
This release of Node (0.8) use node-gyp insted of node-waf.
Documentation: http://blog.nodejs.org/2012/06/25/node-v0-8-0/
There's any workaround on Windows or Linux?
I have just updated to the most recent version of node.js (0.10.15) and was unable to run arcusnode.
It looks like the api for dgram is not backward compatible. Have a look here: http://nodejs.org/api/dgram.html#dgram_udp_datagram_sockets.
I have managed to find a workaround. There are some suggestions here: thatguydan/hue.js#2 (comment) .
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
Base on this document: http://nodejs.org/docs/v0.5.5/api/buffers.html. The Buffer.readDouble
becomes Buffer.readDoubleLE
and Buffer.readDoubleBE
.
I think we should update the code base to use readDoubleBE
and writeDoubleBE
. And also add a note to README file or package.json to require nodejs-v0.5.5+
Is all the javascript libs can be used on client side with modern browsers?
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)
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)
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)
configure --prefix=/usr/local/bin
to prevent "Checking for node prefix: not found" during building of ArcusNode).$ 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)
We're not receiving any NetStatus events on the client side after successful NetGroup connection or any arend Neighbor. Are these implemented?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.