Skip to content

Commit

Permalink
m128 ビルドの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Sep 4, 2024
1 parent 7ba2c4f commit ffecc84
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
- [UPDATE] Boost を 1.85.0 に上げる
- @torikizi
- [UPDATE] WebRTC を m128.6613.2.0 に上げる
- m128.6613.2.0 での変更点は以下の通り
- `rtc::CreateRandomString` のヘッダーを追加
- `rtc_base` 以下のファイルが削除されたことに対する追従
- @torikizi @melpon
- [UPDATE] WebRTC を m119 に上げたことで必要になった関連するライブラリもバージョンを上げる
- CMAKE_VERSION を 3.27.7 に上げる
Expand Down Expand Up @@ -70,6 +73,8 @@
- @tnoho
- [ADD] Intel VPL の VP9 ハードウェアエンコーダに対応する
- @tnoho
- [ADD] ScreenCaptureKit を追加
- @torikizi
- [FIX] macOS で USB 接続されたカメラが取得できなくなっていたのを修正
- macOS で USB デバイスが取得できなくなっていたため、取得するように修正
- macOS 14 以降では従来の API では取得できなくなっていたため API を新たに用意し、macOS 14 以降で新しい API を利用する
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ elseif (TARGET_OS STREQUAL "macos")
"-framework MetalKit"
"-framework OpenGL"
"-framework IOSurface"
"-framework ScreenCaptureKit"
)

elseif (TARGET_OS STREQUAL "linux")
Expand Down
3 changes: 2 additions & 1 deletion src/momo_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

// WebRTC
#include <api/rtp_parameters.h>
#include <rtc_base/proxy_info.h>
#include <rtc_base/crypt_string_revive.h>
#include <rtc_base/proxy_info_revive.h>

#include "video_codec_info.h"

Expand Down
5 changes: 3 additions & 2 deletions src/rtc/rtc_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void RTCManager::AddDataManager(std::shared_ptr<RTCDataManager> data_manager) {
data_manager_dispatcher_.Add(data_manager);
}

class RawCryptString : public rtc::CryptStringImpl {
class RawCryptString : public rtc::revive::CryptStringImpl {
public:
RawCryptString(const std::string& str) : str_(str) {}
size_t GetLength() const override { return str_.size(); }
Expand Down Expand Up @@ -270,7 +270,8 @@ std::shared_ptr<RTCConnection> RTCManager::CreateConnection(
pi.username = config_.proxy_username;
}
if (!config_.proxy_password.empty()) {
pi.password = rtc::CryptString(RawCryptString(config_.proxy_password));
pi.password =
rtc::revive::CryptString(RawCryptString(config_.proxy_password));
}
dependencies.allocator->set_proxy("WebRTC Native Client Momo", pi);
}
Expand Down
4 changes: 2 additions & 2 deletions src/sora-cpp-sdk/src/open_h264_video_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include <absl/container/inlined_vector.h>
#include <absl/strings/match.h>
#include <absl/types/optional.h>
#include <api/transport/rtp/dependency_descriptor.h>
#include <api/environment/environment_factory.h>
#include <api/transport/rtp/dependency_descriptor.h>
#include <api/video/i420_buffer.h>
#include <api/video/video_codec_constants.h>
#include <api/video_codecs/scalability_mode.h>
Expand Down Expand Up @@ -512,7 +512,7 @@ int32_t OpenH264VideoEncoder::InitEncode(
}
}

SimulcastRateAllocator init_allocator(codec_);
SimulcastRateAllocator init_allocator(env_, codec_);
VideoBitrateAllocation allocation =
init_allocator.Allocate(VideoBitrateAllocationParameters(
DataRate::KilobitsPerSec(codec_.startBitrate), codec_.maxFramerate));
Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <boost/preprocessor/stringize.hpp>

// WebRTC
#include <rtc_base/helpers.h>
#include <rtc_base/crypto_random.h>

#include "momo_version.h"

Expand Down

0 comments on commit ffecc84

Please sign in to comment.