[Free] RTMP specifications available if you want it.

. m a r c o s a u g u s t o chadart at gmail.com
Mon Sep 19 06:50:57 PDT 2005


I havent the same luck .... = (

on flash:
(25) Version: WIN 8,0,0,450
(58) Connections: true | true
(114) onStatus: 
  description = Connection succeeded.
  level = status
  code = NetConnection.Connect.Success


(129) onStatus: 
  description = wrong number of arguments (1 for 2)
  level = error
  code = NetConnection.Call.Failed



on ruby:

call
send
object_id
singleton_methods
__send__
equal?
taint
frozen?
instance_variable_get
kind_of?
to_a
instance_eval
require
type
protected_methods
extend
eql?
instance_variable_set
hash
is_a?
to_s
class
tainted?
private_methods
require_gem_with_options
untaint
id
inspect
appendText
==
===
clone
public_methods
respond_to?
display
freeze
__id__
=~
methods
require_gem
method
nil?
dup
instance_variables
instance_of?
./amf_marshal.rb:221: warning: Object#id will be deprecated; use Object#object_i
d
./amf_marshal.rb:226: warning: Object#id will be deprecated; use Object#object_i
d


Here are the lines:
221:
if args.links.has_key? obj.id then
226:
args.links[obj.id] = args.link_count

looks its just a warning, so perhaps its not what is causing the error...
I tryed some weird stuff there... hehe.... but now I need to sleep and Ijust
got to chapter 6 here
http://pine.fm/LearnToProgram/

of course I'm not asking for support , just sharing ....





On 9/19/05, john grden <neoriley at gmail.com> wrote:
> This thing worked great once I figured out how to use Ruby ;)
>  
>  Here's the SWF code I ended up with:
> 
> ////////////////////////////////////////////
>  tt("Version", $version);
>  var nc:NetConnection = new NetConnection();
>  nc.onStatus = function(info)
>  {
>         tt("onStatus", info);
>  }
>  
>  this.nc.connect("rtmp://localhost:1935/test");
>  
>  function EntryResult(targetObject)
>  {
>     this.targetObject = targetObject;
>     this.onResult = function(result)
>     {
>         tt("Result", result);
>     }
>  }
>  
>  var obj:Object = new Object();
>  obj["TeamMembers"] = new Object();
>  obj["TeamMembers"]["devs"] = new Array("John", "Chris", "Luke", "Mick",
> "Yannick", "Grant");
>  
>  this.nc.call("appendText", new EntryResult(this),this.obj);
> ////////////////////////////////////////////
> 
> Output (using xray for logging):
> (31) Version: WIN 8,0,22,0
> (233) onStatus: 
>   description = Connection succeeded. 
>   level = status
>   code = NetConnection.Connect.Success
> 
> 
> (236) Connections: true | true
> (285) Result: 
>   TeamMembers = [object Object]
>       devs = [object Object]
>           5 = Grant
>           4 = Yannick 
>           3 = Mick
>           2 = Luke
>           1 = Chris
>           0 = John
> 
> Interesting to note that as I added new names to the array, that the
> connection closed once I got past "Grant".  If I added one more name, the
> connection closed and nothing was returned.  I had assumed this was a size
> issue, but I'm just guessing ;) 
> 
> Anyway, this is all very cool Yannick, VERY VERY interesting to play with
> and see it in action like this localy.  
> 
> I'm posting the FLA (Flash8) for people if they want a quick starting point.
> 
> Thanks Yannick! 
> 
> 
> On 9/18/05, Yannick Connan <yannick at dazzlebox.com> wrote:
> > 
> > Hello guys,
> > I recently noticed that some of you are looking at building a Free RTMP
> > server. This is really good news. I myself did some studying on this
> > protocol and managed to go as far as having an extended protocol 
> > specification and a working implementation written in Ruby.
> > Unfortunately, being seriously busy these days, I do not have time to
> > complete this project (I never did a formal release). So, here you are,
> > willing to make it real, and I think that my duty should be to help you 
> > I much as I can.
> > 
> > I attached a file called "rtmp_implementation.zip". I don't know the
> > policy concerning attached files on this mailing list. But if it doesn't
> > work, give some time to put it on a FTP server. 
> > 
> > 
> > Unfortunately it's uncommented... but it is written in ruby, a fairly
> > clean and concise language.
> > 
> > To test it, Just go to the rtmp_implementation folder and type "ruby
> > launcher.rb" (you'll need ruby 1.8)
> > 
> > You will find a quick test application located at
> > "./appli_root/test/main.rb". Then, make an empty flash movie and copy
> > this code into the first frame:
> > 
> > 
> > trace($version);
> > _root.main_nc = new NetConnection(); 
> > _root.main_nc.onStatus = function(info){
> >         trace("onStatus = "+info.code);
> > }
> > _root.main_nc.connect("rtmp://localhost:1935/test");
> > function EntryResult(targetObject){ 
> >         this.targetObject = targetObject;
> >         this.onResult = function(result){
> >             trace("last entry = " + result);
> >             this.targetObject.processEntry(result + 1);
> >         }
> > }
> > _root.main_nc.call("appendText", new
> EntryResult(this),"Hello
> > ","world"); // Should return "Hello World"
> > 
> > This implementation is surely buggy as hell. So don't hesitate to 
> > contact me for further information.
> > 
> > Yannick
> > 
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Free mailing list
> > Free at osflash.org
> > http://osflash.org/mailman/listinfo/free_osflash.org
> > 
> > 
> > 
> > 
> 
> 
> 
> -- 
> John Grden - Blitz 
> _______________________________________________
> Free mailing list
> Free at osflash.org
> http://osflash.org/mailman/listinfo/free_osflash.org
> 
> 
> 


-- 
. m a r c o s    a u g u s t o  ;



More information about the Free mailing list