Closed GoogleCodeExporter closed 9 years ago
Reported by Wai Keen Woon <waikeen.woon@aflexi.net>on Sep 15, 2010 Hello, I would like to contribute a patch for RTMP redirection as described in http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=0000 0251.html Index: rtmp.py =================================================================== --- rtmp.py (revision 4753) +++ rtmp.py (working copy) @@ -657,6 +657,15 @@ description=reason, details=None)) self.writeMessage(response.toMessage()) + def redirectConnection(self, url, reason=''): + '''Method to redirect an incoming client to the given url.''' + response = Command() + response.id, response.name, response.type = 1, '_error', Message.RPC + extra = dict(code=302, redirect=url) + response.setArg(dict(level='status', code='NetConnection.Connect.Rejected', + description=reason, details=None, ex=extra)) + self.writeMessage(response.toMessage()) + def call(self, method, *args): '''Call a (callback) method on the client.''' cmd = Command()
Original issue reported on code.google.com by voiprese...@gmail.com on 5 Feb 2011 at 3:52
voiprese...@gmail.com
Applied the patch in svn r42. This should go out in version 7.1 or later.
Original comment by voiprese...@gmail.com on 5 Feb 2011 at 3:52
Original issue reported on code.google.com by
voiprese...@gmail.com
on 5 Feb 2011 at 3:52