Skip to content

Commit

Permalink
デバッグ表示
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 11, 2025
1 parent fffa27a commit 162e43a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
node: ["20", "22", "23"]
node: ["20"]
# node: ["20", "22", "23"]
# browser: ["chromium", "firefox", "webkit"]
browser: ["chromium"]
env:
Expand Down
6 changes: 6 additions & 0 deletions sendrecv/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ document.addEventListener("DOMContentLoaded", async () => {
const channelIdSuffix = import.meta.env.VITE_SORA_CHANNEL_ID_SUFFIX || "";
const secretKey = import.meta.env.VITE_SECRET_KEY || "";

console.log(`signalingUrl=${signalingUrl}`);
console.log(`channelIdPrefix=${channelIdPrefix}`);
console.log(`channelIdSuffix=${channelIdSuffix}`);
console.log(`secretKey=${secretKey}`);

// パラメータから channelName を取得
const urlParams = new URLSearchParams(window.location.search);
const channelName = urlParams.get("channelName") || "";
Expand Down Expand Up @@ -80,6 +85,7 @@ class SoraClient {
async connect(stream: MediaStream) {
if (this.secretKey !== "") {
const jwt = await generateJwt(this.channelId, this.secretKey);
console.log(`jwt=${jwt}`);
this.connection.metadata = {
access_token: jwt,
};
Expand Down

0 comments on commit 162e43a

Please sign in to comment.