static std::string GetApiVersion() {
std::ostringstream version_builder;
- version_builder << *(GetApiLevels().rbegin())
- << "." WASM_VERSION "/" WASM_PLAYER_VERSION
- "/" WASM_PLAYER_HTML_VERSION
- "-" WASM_PLAYER_RENDERER_IMPL_VERSION
- "-" WASM_PLAYER_BROWSER_IMPL_VERSION;
+ version_builder << WASM_VERSION "/" WASM_PLAYER_VERSION
+ "/" WASM_PLAYER_HTML_VERSION
+ "-" WASM_PLAYER_RENDERER_IMPL_VERSION
+ "-" WASM_PLAYER_BROWSER_IMPL_VERSION;
return version_builder.str();
}
// Make sure major component of the version mathces a highest returned API
// level.
static constexpr char kSocketsApiVersion[] =
- "1." WASM_VERSION "/" WASM_SOCKETS_VERSION;
+ WASM_VERSION "/" WASM_SOCKETS_VERSION;
return kSocketsApiVersion;
}
#include "base/no_destructor.h"
#include "third_party/blink/renderer/modules/sockets/tizen_sockets_version.h"
#include "third_party/blink/renderer/modules/tizen_tv_wasm/tizen_tv_api_info.h"
+#include "third_party/blink/renderer/modules/webrtc/webrtc_version.h"
#if defined(SAMSUNG_ELEMENTARY_MEDIA_STREAM_SOURCE)
#include "third_party/blink/renderer/modules/elementary_media_stream_source/elementary_media_stream_source_version.h"
TizenSocketsVersion::GetApiLevels(),
TizenSocketsVersion::GetSupportedFeatures(),
},
+ {
+ WebRtcVersion::GetApiName(),
+ WebRtcVersion::GetApiVersion(),
+ WebRtcVersion::GetApiLevels(),
+ WebRtcVersion::GetSupportedFeatures(),
+ },
#if defined(SAMSUNG_ELEMENTARY_MEDIA_STREAM_SOURCE)
{
ElementaryMediaStreamSourceVersion::GetApiName(),
--- /dev/null
+// Copyright 2023 Samsung Electronics Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBRTC_WEBRTC_VERSION_H_
+#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBRTC_WEBRTC_VERSION_H_
+
+#include <cstdint>
+#include <string>
+#include <vector>
+
+#include "base/cxx17_backports.h"
+#include "base/stl_util.h"
+
+// Autogenerated header:
+#include "third_party/blink/public/platform/tizen/tizen_tv_wasm_version.h"
+
+namespace blink {
+
+struct WebRtcVersion {
+ static const char* GetApiName() {
+ static constexpr char kWebRtcApiName[] = "WebRTC";
+ return kWebRtcApiName;
+ }
+
+ static const char* GetApiVersion() {
+ static constexpr char kWebRtcApiVersion[] =
+ WEBRTC_VERSION "/" WEBRTC_TIZEN_VERSION "/" WEBRTC_THIRD_PARTY_VERSION;
+ return kWebRtcApiVersion;
+ }
+
+ static std::vector<uint32_t> GetApiLevels() {
+ static constexpr uint32_t kWebRtcLevels[] = {1};
+ return {kWebRtcLevels, kWebRtcLevels + base::size(kWebRtcLevels)};
+ }
+
+ static std::vector<std::string> GetSupportedFeatures() { return {}; }
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBRTC_WEBRTC_VERSION_H_