Skip to content

Commit

Permalink
てすと
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Nov 6, 2024
1 parent 75b2f83 commit 5dc9403
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/momo_sora.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,17 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()

def run_app(self):
print(self.executable)
args = [
"sudo",
str(self.executable),
"sora",
"--port",
str(self.port),
"--signaling-urls",
",".join(self.signaling_urls),
"--channel-id",
self.channel_id_prefix,
"--video-device",
# "--video-device",
# これは GitHub Actions 用
"VCamera",
# "VCamera",
"--metadata",
json.dumps(self.metadata),
]
Expand All @@ -92,7 +90,7 @@ def start(self):
start_time = time.time()
while time.time() - start_time < 10: # 10秒のタイムアウト
if self.process and self.process.poll() is None:
print(f"Momo started on port {self.port}")
print("Momo started")
return
time.sleep(0.1)

Expand Down

0 comments on commit 5dc9403

Please sign in to comment.