Skip to content

Commit

Permalink
video_source
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Aug 1, 2024
1 parent a8a6507 commit 8ab0504
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from sora_sdk import Sora


def _on_signaling_notify(message):
print(message)


def test_sora(setup):
signaling_urls = setup.get("signaling_urls")
channel_id_prefix = setup.get("channel_id_prefix")
Expand All @@ -13,15 +17,21 @@ def test_sora(setup):
channel_id = f"{channel_id_prefix}_{__name__}_{sys._getframe().f_code.co_name}_{uuid.uuid4()}"

sora = Sora()

video_source = sora.create_video_source()

connection = sora.create_connection(
signaling_urls=signaling_urls,
role="sendonly",
channel_id=channel_id,
metadata=metadata,
audio=False,
video=True,
video_source=video_source,
)

# connection.on_notify = _on_signaling_notify

connection.connect()

time.sleep(5)
Expand Down

0 comments on commit 8ab0504

Please sign in to comment.