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()