webrtc working
This commit is contained in:
16
test_webrtc.py
Normal file
16
test_webrtc.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import asyncio
|
||||
from mucapy.WebServer import VideoWebServer
|
||||
|
||||
async def main():
|
||||
server = VideoWebServer()
|
||||
await server.start_server()
|
||||
print("Server started, press Ctrl+C to stop")
|
||||
try:
|
||||
while True:
|
||||
await asyncio.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
print("\nStopping server...")
|
||||
await server.stop_server()
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user