From 16e5fb17a2e577a925bc18624cbe4eab957612f3 Mon Sep 17 00:00:00 2001 From: Jakub Audykowicz Date: Tue, 5 Sep 2023 10:28:22 +0200 Subject: [PATCH] Android - ifdefs because Android C++ SDK is based off SDK 2.7 --- DolbyIO/Source/Private/Utils/DolbyIOConversions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DolbyIO/Source/Private/Utils/DolbyIOConversions.cpp b/DolbyIO/Source/Private/Utils/DolbyIOConversions.cpp index 7dc06359..3f0358f8 100644 --- a/DolbyIO/Source/Private/Utils/DolbyIOConversions.cpp +++ b/DolbyIO/Source/Private/Utils/DolbyIOConversions.cpp @@ -160,7 +160,11 @@ namespace DolbyIO const dolbyio::comms::utils::participant_track_map::value_type& TrackMapItem) { FDolbyIOVideoTrack Ret; +#if PLATFORM_ANDROID // SDK 2.7 + Ret.TrackID = ToFString(TrackMapItem.second.sdp_track_id); +#else // SDK 2.6 Ret.TrackID = ToFString(std::get<1>(TrackMapItem.second)); +#endif Ret.ParticipantID = ToFString(TrackMapItem.first); Ret.bIsScreenshare = false; return Ret;