Meeting SDK を使用して Webinar の視聴画面を作成 ( Create a webinar viewing screen using the Meeting SDK)


Format Your New Topic as Follows:

API Endpoint(s) and/or Zoom API Event(s)
Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context.

Description
Details on your question, workflow or the problem you’re trying to solve.

Meeting SDK を使用して Webinar の視聴画面を作成しようとしています。
すでに以前、JWTでシグネチャを生成する処理はあったのですが、
JWTが非推奨になり、対応を迫られています。

現状、

https://gakujyutsusha.jp/zoom/meeting.html?name=5a2m6KGT44CA5aSq6YOOX2dhazk5OQ%3D%3D&mn=83686072160&email=aW5mb0B0YW5ha2EtY3MuY28uanA%3D&pwd=774989&role=0&lang=jp-JP&signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiIwb3NVWmswdlp6WDlmbE5QSnBkVkVZUXFSVDY0THhpZW5lVjkiLCJtbiI6ODM2ODYwNzIxNjAsInJvbGUiOjAsImlhdCI6MTY5NTM2MDU5MiwiZXhwIjoxNjk1MzY3NzkyLCJhcHBLZXkiOiJxeU1BRmgyeW44R2ZQTzQzS0ZKSG5FNjlBdXVhVGhSdFlLblIiLCJ0b2tlbkV4cCI6MTY5NTM2Nzc5Mn0.1sJxUVAtCIPSGZo3a2rCoLWQXjE0Kk4IckgZ1ZR7yyM&china=0&sdkKey=0osUZk0vZzX9flNPJpdVEYQqRT64LxieneV9

上記URLの処理がエラー発生します。

ミーティングの参加がタイムアウトしました。
会議に参加するために失敗します。

現在、Draft状態の Meeting SDK でテストをしようとしています。

Q1.
Zoom Authorization URL にアクセスして得たコードを、どのように利用したら良いか。
大量のドキュメントを読み込めていません。読むべきドキュメントを教えて下さい。

Q2.
→ Zoom Integration OAuth App Part 1 https://youtu.be/LY7jXL9FSqA
→ Zoom Integration OAuth App Part 2 https://youtu.be/ytkNxMyZ8_E
これは見ました。
Meeting SDK には、どのように応用するのでしょうか?

Error?
The full error message or issue you are running into, where applicable.

How To Reproduce
Steps to reproduce the behavior:
1. Request URL / Headers (without credentials or sensitive info like emails, uuid, etc.) / Body
2. Authentication method or app type
3. Any errors

Translation :heart:


Format Your New Topic as Follows:

API Endpoint(s) and/or Zoom API Event(s)
Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context.

Description
Details on your question, workflow or the problem you’re trying to solve.

I’m trying to create a webinar viewing screen using the Meeting SDK.
There was already a process to generate a signature with JWT, but
JWT has been deprecated and we need to take action.

current situation,

An error occurs when processing the above URL.

Meeting participation timed out.
Fail to join the meeting.

I’m currently trying to test the Meeting SDK in Draft state.

Q1.
How can I use the code obtained by accessing the Zoom Authorization URL?
Unable to load large number of documents. Please tell me which documents I should read.

Q2.
→ Zoom Integration OAuth App Part 1 https://youtu.be/LY7jXL9FSqA
→ Zoom Integration OAuth App Part 2 https://youtu.be/ytkNxMyZ8_E
I saw this.

Thank you for posting in the Zoom Developer Fourm – I am happy to help @hidemune ! It seems like you are trying to understand the steps to authorize the Meeting SDK. Is that correct? If so, you will need to create Zoom Marketplace SDK app and use the App credentials to generate a JWT to authorize the Meeting SDK. Here is our document on how to authorize the Zoom Meeting SDK :

We also have a helpful article on troubleshooting meeting SDK signatures, you can check it out here :

Additionally, here is our support documentation on starting a webinar via SDK:

Please let me know if this helps or if you have further questions.

ありがとうございます。頭の中が整理できました。

ドキュメントを見る限り、ウェビナーを視聴するだけなら
tk, zak は必要ないように思えます。これは、Role:0の場合は実装する必要は無いですよね?
しかし、

https://gakujyutsusha.jp/zoom/test.html

で視聴しようとすると、以下のエラーが発生します。

ミーティングの参加がタイムアウトしました。
会議に参加するために失敗します。

現在のスコープは以下のとおりです。
Share within your account
Active
となっています。

Scope Name / ID
View your meetings /meeting:read
ミーティング参加
View live streaming meeting token information /meeting_token:read:live_streaming
ミーティング参加
View user’s zak token /user_zak:read
トークン取得
View your webinars /webinar:read
ウェビナー視聴
View live streaming webinar token information /webinar_token:read:live_streaming
ウェビナー視聴

動作しない理由の、考えられる原因には、何が有りますか?

Join webinar

To join a Zoom webinar, you must use a role value of 0 in your SDK signature, and include the userEmail property. This enables your Meeting SDK for Web to join any webinar.

ZoomMtg.init({
  leaveUrl: leaveUrl, // https://example.com/thanks-for-joining
  success: (success) => {
    ZoomMtg.join({
      sdkKey: sdkKey,
      signature: signature, // role in SDK signature needs to be 0
      meetingNumber: meetingNumber,
      passWord: passWord,
      userName: userName,
      userEmail: userEmail, // userEmail property required
      success: (success) => {
        console.log(success)
      },
      error: (error) => {
        console.log(error)
      }
    })
  },
  error: (error) => {
    console.log(error)
  }
})

上記の部分には、特段のトークンなどの必要性が記述されていません。この部分の実装は済んでいるので、以下のメッセージが出る理由がわからないのです。

https://gakujyutsusha.jp/zoom/test.html

エラーメッセージ:

ミーティングの参加がタイムアウトしました。

会議に参加するために失敗します。

Translated Text :

The above part does not mention the need for any special tokens. I have already implemented this part, so I don’t know why the following message appears.

https://gakujyutsusha.jp/zoom/test.html

Error message:

Your participation in the meeting has timed out.
Fail to join the meeting.

ありがとうございます!
以下のトラブルシュートで、原因が判明しました!

解決しました!

Verify with JWT.io

JWT.io provides an excellent tool to decode and debug a JSON Web Token. You can use this tool to verify your token’s structure or build a token using a header and payload.

The header includes the signing algorithm and the token type. The payload section describes the authorization granted. It contains the token’s claims, the information passed about the user, and any metadata required.

1 Like

Awesome @hidemune, I’m glad those troubleshooting steps helped you resolve the issue you were facing, please feel free to ask any additional questions you may have.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.