refactor: use new port negotiation style

As changed in the API document, this now uses the new port negotiation style.

ref: N25B-168
This commit is contained in:
Twirre Meulenbelt
2025-10-16 17:22:04 +02:00
parent e12d88726d
commit 23c3379bfb
8 changed files with 43 additions and 69 deletions

View File

@@ -15,12 +15,12 @@ class VideoSender(SocketBase):
def start_video_rcv(self):
"""
Prepares arguments for retrieving video images from Pepper and starts video loop on a separate thread.
"""
app = qi.Application()
app.start()
session = app.session
"""
if not state.qi_session:
logging.info("No QI session available, not starting video loop")
return
video = session.service("ALVideoDevice")
video = state.session.service("ALVideoDevice")
camera_index = 0
kQVGA = 2