Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
Includes support for picamera2 thanks to phamthanhnam.
  • Loading branch information
dkumor committed Jul 24, 2023
1 parent ad7f6bb commit 20c5e87
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions examples/webrtc/dataconnection.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
from aiohttp import web
import asyncio
import logging

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

logging.basicConfig(level=logging.DEBUG)


routes = web.RouteTableDef()

from rtcbot import RTCConnection, getRTCBotJS


# For this example, we use just one global connection
conn = RTCConnection()
conn = RTCConnection(loop=loop)


@conn.subscribe
Expand Down Expand Up @@ -82,4 +90,4 @@ async def cleanup(app=None):
app = web.Application()
app.add_routes(routes)
app.on_shutdown.append(cleanup)
web.run_app(app)
web.run_app(app,loop=loop)
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtcbot",
"version": "0.2.4",
"version": "0.2.5",
"description": "",
"main": "dist/rtcbot.cjs.js",
"module": "dist/rtcbot.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# This call to setup() does all the work
setuptools.setup(
name="rtcbot",
version="0.2.4",
version="0.2.5",
description="An asyncio-focused library for webrtc robot control",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 20c5e87

Please sign in to comment.