Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "monthly"
groups:
pip-dependencies:
uv-dependencies:
patterns:
- '*'
- package-ecosystem: "npm"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv and Set up Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
Expand Down
2 changes: 1 addition & 1 deletion public/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
RemoteVideoStream,
Subscription,
} from "@skyway-sdk/core";
import { SfuBotMember, SfuBotPlugin } from "@skyway-sdk/sfu-bot";
import { SFUBotMember, SFUBotPlugin } from "@skyway-sdk/sfu-bot";

const appId = process.env.SKYWAY_APP_ID ?? "";
const secretKey = process.env.SKYWAY_SECRET_KEY ?? "";
Expand Down
1,415 changes: 658 additions & 757 deletions public/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"author": "sublimer <sublimer.me@gmail.com> (https://sublimer.me/)",
"license": "MIT",
"devDependencies": {
"@types/node": "^24.9.2",
"@types/node": "^25.0.3",
"buffer": "^6.0.3",
"parcel": "^2.16.0",
"parcel": "^2.16.3",
"typescript": "^5.9.3"
},
"dependencies": {
"@skyway-sdk/core": "^2.0.0",
"@skyway-sdk/sfu-bot": "^1.14.3"
"@skyway-sdk/core": "^2.2.1",
"@skyway-sdk/sfu-bot": "^2.0.3"
}
}
40 changes: 0 additions & 40 deletions requirements.txt

This file was deleted.

19 changes: 14 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@
import settings
import jwt
import asyncio
import websockets
import websockets.client
from websockets.typing import Subprotocol
import uuid
import time
import base64
from rtc_api_client import RtcApiClient
from sfu_api_client import SfuApiClient
from mediasoup_client import MediasoupClient
from aiortc.contrib.media import MediaPlayer, MediaRelay

logging.getLogger().setLevel(logging.INFO)
logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger('websockets').setLevel(logging.DEBUG)

if not settings.APP_ID:
raise ValueError("SKYWAY_APP_ID environment variable is not set")

if not settings.SECRET_KEY:
raise ValueError("SKYWAY_SECRET_KEY environment variable is not set")

token = jwt.encode(
{
Expand All @@ -33,11 +42,11 @@
algorithm="HS256",
)


async def main():
async with websockets.connect(
"wss://rtc-api.skyway.ntt.com:443/ws", subprotocols=[token]
async with websockets.client.connect(
"wss://rtc-api.skyway.ntt.com:443/ws", subprotocols=[Subprotocol(token)]
) as websocket:
logging.info(f"Selected subprotocol: {websocket.subprotocol}")
rtc_api_client = RtcApiClient(websocket, token, settings.APP_ID)
sfu_api_client = SfuApiClient(token, settings.APP_ID)
channel_id = input("channel_id: ")
Expand Down
1,473 changes: 1,053 additions & 420 deletions uv.lock

Large diffs are not rendered by default.