-
Notifications
You must be signed in to change notification settings - Fork 8
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
connect メッセージの multistream 送信仕様の変更 #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 点確認をお願いします。
@@ -502,7 +502,7 @@ class SoraMediaChannel @JvmOverloads constructor( | |||
|
|||
override fun onAddRemoteStream(ms: MediaStream) { | |||
SoraLogger.d(TAG, "[channel:$role] @peer:onAddRemoteStream msid=:${ms.id}, connectionId=$connectionId") | |||
if (mediaOption.multistreamEnabled && connectionId != null && ms.id == connectionId) { | |||
if (mediaOption.multistreamEnabled == true && connectionId != null && ms.id == connectionId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mediaOption.multistreamEnabled が null の時はこの分岐にはいるのでしょうか。入らない場合は、Sora のデフォルトはマルチストリームなので「mediaOption.multistreamEnabled が false ではない」という条件にした方が良いように思いました。
ここは自分自身のストリームが通知された時にイベントを発行させないようにする処理だと思いますが、実際に sora-android-quickstart で動作をさせたところ、自分自身のストリームが入った通知は来ませんでした。
予期せぬケースを想定しているのかもしれません。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、たしかに仰る通りですね...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24125a6 で修正しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました、対応ありがとうございます。
multistream
を true 固定で送信する処理を削除する破壊的変更SoraMediaOption.enableSpotlight
を実行したときに multistream を true にする処理を削除ConnectMessage
初期化時に渡す multistream の値をSoraMediaOption.multistreamEnabled
に変更SoraMediaOption.multistreamIsRequired
利用しなくなったので削除SoraMediaOption.enableMultistream
を非推奨にするSoraMediaOption
にenableLegacyStream
を追加するThis pull request includes several changes to the
sora-android-sdk
to improve the handling of multistream options and deprecate legacy features. The most important changes include removing the fixedmultistream
value, updating theSoraMediaOption
class, and deprecating certain methods.Changes to multistream handling:
multistream
value from the connect message and modified the initialization to useSoraMediaOption.multistreamEnabled
instead. (CHANGES.md
,sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/signaling/message/Catalog.kt
,sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/signaling/message/MessageConverter.kt
) [1] [2] [3]multistreamEnabled
inSoraMediaOption
from a Boolean to a nullable Boolean to allow for more flexible handling. (sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/option/SoraMediaOption.kt
)SoraMediaChannel
to checkmultistreamEnabled
againsttrue
explicitly. (sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/SoraMediaChannel.kt
)Deprecation of legacy features:
enableMultistream
method and added a newenableLegacyStream
method, which is also marked as deprecated from the start. (sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/option/SoraMediaOption.kt
)multistreamIsRequired
property and associated logic fromSoraMediaOption
as it is no longer used. (sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/option/SoraMediaOption.kt
)These changes aim to simplify the codebase and prepare for the upcoming deprecation of legacy stream features.