Skip to content

Commit

Permalink
SoraSignalingConfig に audio_opus_params を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Oct 23, 2024
1 parent 5807127 commit 3d6f90f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
- @tnoho
- [ADD] DataChannel のみの接続で type: close がやってきた場合に正しく切断されるようにする
- @melpon
- [ADD] SoraSignalingConfig に audio_opus_params を追加
- @melpon
- [FIX] HTTP Proxy 利用時の Websocket 初期化で insecure_ メンバ変数が初期化されていなかったのを修正
- @melpon
- [FIX] SoraSignalingConfig の client_cert と client_key に渡す必要がある値を、ファイルパスからファイルの内容に修正
Expand Down
1 change: 1 addition & 0 deletions include/sora/sora_signaling.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ struct SoraSignalingConfig {
boost::json::value video_av1_params;
boost::json::value video_h264_params;
boost::json::value video_h265_params;
boost::json::value audio_opus_params;
std::string audio_streaming_language_code;
boost::json::value metadata;
boost::json::value signaling_notify_metadata;
Expand Down
3 changes: 3 additions & 0 deletions src/sora_signaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ void SoraSignaling::DoSendConnect(bool redirect) {
if (config_.audio_bit_rate != 0) {
m["audio"].as_object()["bit_rate"] = config_.audio_bit_rate;
}
if (!config_.audio_opus_params.is_null()) {
m["audio"].as_object()["opus_params"] = config_.audio_opus_params;
}
}

if (!config_.audio_streaming_language_code.empty()) {
Expand Down

0 comments on commit 3d6f90f

Please sign in to comment.