Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 Flash 流,我只想显示活动/实时/在线流。有人可以提供可以检查流状态的示例代码吗?或者指出我在哪里可以抓住它(我认为Red5和RTMPy应该有这个,但我完全没有任何RTMP经验;还有RTMP规范,但wiki说它不完整)?我的目标语言是 Python,但任何语言的代码都会有所帮助。
如果连接丢失或连接失败,下面的代码将打印错误消息。
from twisted.internet import reactor from rtmpy.client import ClientFactory reactor.connectTCP('localhost', 1935, ClientFactory()) reactor.run()