gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [patch #8086] RTMP netStream patch


From: Sandro Santilli
Subject: [Gnash-commit] [patch #8086] RTMP netStream patch
Date: Fri, 06 Sep 2013 11:41:58 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Follow-up Comment #39, patch #8086 (project gnash):

I also have to admit I don't understand the rtmp::RTMP class, how does simply
defining an instance of that class (with no parameters to the constructor) and
calling .call(buf) on it know where to send the data ?

I'm talking about this snippet of code:

      std::vector<as_value> args;
      SimpleBuffer buf;
      rtmp::RTMP rtmpObj;
      args = std::vector<as_value>(fn.getArgs().begin(),
        fn.getArgs().end());
      amf::Writer aw(buf);
      aw.writeString("play");
      aw.writeNumber(0);
      aw.writeNull();
      for (size_t i = 0; i < args.size(); ++i) 
      {
          args[i].writeAMF0(aw);
      }
      // TODO Use the play method and the streamId from createStream
      rtmpObj.call(buf);

What does RTMP.call do, exactly ?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8086>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]