How to install RTMPy
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install rtmpy
Lastest release
RTMPy is a Twisted protocol implementing the Real Time Messaging Protocol (RTMP), used for streaming audio, video and data between the Adobe Flash Player and a server.
As of 0.1, RTMPy provides a simple server architecture, something that will be expanded on over the next coming releases.
Probably the simplest Python script to up and running:
import sys
from twisted.internet import reactor from twisted.python import log
from rtmpy import server
app = server.Application()
reactor.listenTCP(1935, server.ServerFactory({ 'live': app }))
log.startLogging(sys.stdout)
reactor.run()
The server framework is loosely based on the same design as the FMS Server Side ActionScript Language Reference. Specifically the Application class, Client class and Stream class.