Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/fix type offer message #529

Merged
merged 8 commits into from
Jul 9, 2024
Merged

Conversation

voluntas
Copy link
Member

@voluntas voluntas commented Jul 8, 2024

  • [FIX] "type": "offer"simulcast の値が反映されていない問題を修正する
  • [FIX] "type": "offer"bundle_idspotlight を保持するように修正する

This pull request mainly introduces changes to the ConnectionBase class in packages/sdk/src/base.ts and updates the CHANGES.md file. The modifications in the ConnectionBase class involve adding new properties and updating methods to incorporate these properties. The CHANGES.md file has been updated to reflect these changes.

Updates to ConnectionBase class:

  • packages/sdk/src/base.ts: Added simulcast, spotlight, and bundleId as new properties in the ConnectionBase class. These properties are initialized in the constructor and initializeConnection method. They are also updated in the signalingOnMessageTypeOffer method. [1] [2] [3] [4] [5]
  • packages/sdk/src/base.ts: Updated the condition for simulcast in the anonymous function within the pc.getTransceivers().find call to use the new simulcast property.

Updates to SignalingOfferMessage type:

  • packages/sdk/src/types.ts: Added multistream, simulcast, simulcast_multicodec, spotlight, and bundle_id to the SignalingOfferMessage type.

Changes in CHANGES.md:

  • CHANGES.md: Added entries for fixing issues where "type": "offer" did not reflect the simulcast, bundle_id, and spotlight values.

@voluntas voluntas force-pushed the feature/fix-type-offer-message branch from e606037 to db70ee4 Compare July 8, 2024 11:38
@voluntas voluntas force-pushed the feature/fix-type-offer-message branch from db70ee4 to f5f8be9 Compare July 8, 2024 11:39
packages/sdk/src/types.ts Show resolved Hide resolved
packages/sdk/src/base.ts Show resolved Hide resolved
@voluntas voluntas self-assigned this Jul 9, 2024
@voluntas voluntas added the bug label Jul 9, 2024
@tnamao
Copy link
Contributor

tnamao commented Jul 9, 2024

initializeConnection 関数にも ConnectionBase に追加したメンバ変数の初期化が必要そうです
https://github.com/shiguredo/sora-js-sdk/blob/feature/fix-type-offer-message/packages/sdk/src/base.ts#L740-L761

@voluntas
Copy link
Member Author

voluntas commented Jul 9, 2024

@tnamao デフォルト値を追加しました。

@tnamao
Copy link
Contributor

tnamao commented Jul 9, 2024

LGTM 👍

@voluntas voluntas merged commit cb3af06 into develop Jul 9, 2024
7 checks passed
@voluntas voluntas deleted the feature/fix-type-offer-message branch July 9, 2024 02:31
voluntas added a commit that referenced this pull request Jul 9, 2024
* type: offer 時のシグナリングメッセージの型定義を修正する

* type: offer 時の処理の追加と、simulcast の判定を options ではなくする

* type: offer 時の処理の追加と、simulcast の判定を options ではなくする

* 変更履歴を更新する

* 変更履歴を更新する

* session_id は互換性を考慮してオプションとする

* 接続状態の初期化のデフォルト値を追加
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants