From faf8aed29bb566fe3b7a3125cc91845d68a62982 Mon Sep 17 00:00:00 2001 From: Tero Paananen <54746036+tero-paananen@users.noreply.github.com> Date: Wed, 30 Sep 2020 21:27:39 +0300 Subject: [PATCH] Renaming Boolean etc to AsBoolean (#2119) --- .../ReactVideoViewManager.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/windows/ReactNativeVideoCPP/ReactVideoViewManager.cpp b/windows/ReactNativeVideoCPP/ReactVideoViewManager.cpp index b31a38ad..5d6d669f 100644 --- a/windows/ReactNativeVideoCPP/ReactVideoViewManager.cpp +++ b/windows/ReactNativeVideoCPP/ReactVideoViewManager.cpp @@ -64,28 +64,28 @@ void ReactVideoViewManager::UpdateProperties( auto const &propertyValue = pair.second; if (!propertyValue.IsNull()) { if (propertyName == "src") { - auto const &srcMap = propertyValue.Object(); + auto const &srcMap = propertyValue.AsObject(); auto const &uri = srcMap.at("uri"); - reactVideoView.Set_UriString(to_hstring(uri.String())); + reactVideoView.Set_UriString(to_hstring(uri.AsString())); } else if (propertyName == "resizeMode") { - reactVideoView.Stretch(static_cast(std::stoul(propertyValue.String()))); + reactVideoView.Stretch(static_cast(std::stoul(propertyValue.AsString()))); } else if (propertyName == "repeat") { - reactVideoView.Set_IsLoopingEnabled(propertyValue.Boolean()); + reactVideoView.Set_IsLoopingEnabled(propertyValue.AsBoolean()); } else if (propertyName == "paused") { - m_paused = propertyValue.Boolean(); + m_paused = propertyValue.AsBoolean(); reactVideoView.Set_Paused(m_paused); } else if (propertyName == "muted") { - reactVideoView.Set_Muted(propertyValue.Boolean()); + reactVideoView.Set_Muted(propertyValue.AsBoolean()); } else if (propertyName == "volume") { - reactVideoView.Set_Volume(propertyValue.Double()); + reactVideoView.Set_Volume(propertyValue.AsDouble()); } else if (propertyName == "seek") { - reactVideoView.Set_Position(propertyValue.Double()); + reactVideoView.Set_Position(propertyValue.AsDouble()); } else if (propertyName == "controls") { - reactVideoView.Set_Controls(propertyValue.Boolean()); + reactVideoView.Set_Controls(propertyValue.AsBoolean()); } else if (propertyName == "fullscreen") { - reactVideoView.Set_FullScreen(propertyValue.Boolean()); + reactVideoView.Set_FullScreen(propertyValue.AsBoolean()); } else if (propertyName == "progressUpdateInterval") { - reactVideoView.Set_ProgressUpdateInterval(propertyValue.Int64()); + reactVideoView.Set_ProgressUpdateInterval(propertyValue.AsInt64()); } } }