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

OfferMessage を更新する #143

Merged
merged 7 commits into from
Dec 18, 2024
Merged

OfferMessage を更新する #143

merged 7 commits into from
Dec 18, 2024

Conversation

zztkm
Copy link
Contributor

@zztkm zztkm commented Dec 17, 2024

  • [UPDATE] OfferMessage に項目を追加する
    • 追加した項目
      • version
      • multistream
      • simulcast_multicodec
      • spotlight
      • channel_id
      • session_id
      • audio
      • audio_codec_type
      • audio_bit_rate
      • video
      • video_codec_type
      • video_bit_rate

This pull request includes updates to the OfferMessage class and documentation changes to reflect the new fields added. The most important changes include the addition of several new fields to the OfferMessage class and the corresponding update to the CHANGES.md file.

Updates to OfferMessage class:

  • Added new fields version, multistream, simulcast_multicodec, spotlight, channel_id, session_id, audio, audio_codec_type, audio_bit_rate, video, video_codec_type, and video_bit_rate to the OfferMessage class in sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/signaling/message/Catalog.kt.

Documentation updates:

  • Updated CHANGES.md to include the new fields added to OfferMessage.

@zztkm zztkm changed the title WIP: OfferMessage を更新する OfferMessage を更新する Dec 18, 2024
@zztkm zztkm requested a review from miosakuma December 18, 2024 02:48
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

channel_id や multistream などのオプショナルでない項目は確定で入ってくることを前提にしていて、オプショナルにしてある項目は互換性担保の目的でオプショナルにしてあります。

Copy link
Contributor

@miosakuma miosakuma Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

議論になる箇所と思うのですが、Sora の仕様変更の可能性を考えると、SDK として動作に必須でない(利用していない)項目は全てオプショナルにしてしまって良いように思いました。将来的に multistream が廃止されることなどを意識しています。

@@ -111,15 +111,31 @@ data class RedirectMessage(
data class OfferMessage(
@SerializedName("type") val type: String = "offer",
@SerializedName("sdp") val sdp: String,
@SerializedName("version") val version: String,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Q] version はオプションの方が良いかどうか

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今回追加する項目はすべてオプションにする

Copy link
Contributor

@miosakuma miosakuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

項目や定義に過不足ないことを確認しました。対応ありがとうございます。

@zztkm zztkm merged commit a9aa0a9 into develop Dec 18, 2024
1 check passed
@zztkm zztkm deleted the feature/upate-offer-message branch December 18, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants