first commit

This commit is contained in:
2026-07-31 16:59:09 +08:00
commit 48e540fefa
5 changed files with 231 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import asyncio
from chongming_stream_manager import StreamManager
stream_manager = StreamManager("rtsp://172.21.110.223:8554/")
async def main():
await stream_manager.start_stream(
"test",
"/tmp/bm-app/Upload/Video/VIDEO_02303069-B52F-47BA-A4F3-7DB4C66E087D.mp4"
)
await asyncio.sleep(120)
await stream_manager.stop_all()
if __name__ == "__main__":
asyncio.run(main())