-
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
SoraSignalingObserver に OnSwitched を追加する #63
Conversation
include/sora/sora_signaling.h
Outdated
@@ -48,6 +48,7 @@ class SoraSignalingObserver { | |||
virtual void OnNotify(std::string text) = 0; | |||
virtual void OnPush(std::string text) = 0; | |||
virtual void OnMessage(std::string label, std::string data) = 0; | |||
virtual void OnSwitched(std::string text) = 0; |
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.
空の関数に差し替えました
また、修正前は OnSwitched を hello に実装していましたが、 datachannel に変えました
(元から data_channel_signaling = true
が設定されており、動作を確認しやすいためです)
CHANGES.md
Outdated
@@ -26,6 +26,8 @@ | |||
- force_i420_conversion_for_simulcast_adapter のデフォルト値は true で I420 への変換を行う | |||
- 変換を行わない場合、エンコードの性能が向上するが、バッファーの実装によってはサイマルキャストが利用できなくなる | |||
- @enm10k | |||
- [UPDATE] SoraSignalingObserver に OnSwitched を追加する |
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.
UPDATE ではなく ADD ですね
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.
修正しました
@@ -66,7 +66,7 @@ class SoraClient : public std::enable_shared_from_this<SoraClient>, | |||
[this](const boost::system::error_code&, int) { conn_->Disconnect(); }); | |||
|
|||
timer_.reset(new boost::asio::deadline_timer(*ioc_)); | |||
timer_->expires_from_now(boost::posix_time::seconds(1)); | |||
timer_->expires_from_now(boost::posix_time::seconds(3)); |
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.
@melpon 私が利用した環境では動作が安定しなかったため、秒数を伸ばしました
include/sora/sora_signaling.h
Outdated
@@ -48,6 +48,7 @@ class SoraSignalingObserver { | |||
virtual void OnNotify(std::string text) = 0; | |||
virtual void OnPush(std::string text) = 0; | |||
virtual void OnMessage(std::string label, std::string data) = 0; | |||
virtual void OnSwitched(std::string text){}; |
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.
322f545 の修正で正常にフォーマットされるようになったようです
よさそう |
レビューありがとうございます |
No description provided.