Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Nov 6, 2024
1 parent 0489e24 commit 75b2f83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/momo_sora.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import platform
import signal
import subprocess
Expand Down Expand Up @@ -25,7 +26,7 @@
class Momo:
signaling_urls: list[str]
channel_id_prefix: str
secret_key: str
metadata: dict[str, str]
port: int

def __init__(
Expand Down Expand Up @@ -65,11 +66,11 @@ def run_app(self):
",".join(self.signaling_urls),
"--channel-id",
self.channel_id_prefix,
"--secret-key",
self.secret_key,
"--video-device",
# これは GitHub Actions 用
"VCamera",
"--metadata",
json.dumps(self.metadata),
]
try:
self.process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 75b2f83

Please sign in to comment.