Introduce ArFrameMetadata to relly less on virtual functions for metadata getters

This commit is contained in:
2021-06-05 19:46:07 +02:00
parent 51d61fd5f5
commit a28650a1ef
10 changed files with 360 additions and 26 deletions

View File

@@ -56,12 +56,11 @@ namespace openVulkanoCpp::AR
ArCreateResult ArSession::CreatePlayback(const std::string& recordingPath, bool autoAdvance)
{
return { nullptr, ArCreateResult::FAILED_NOT_SUPPORTED, "not yet implemented" };
try
{
/*const auto session = std::make_shared<Playback::ArSessionPlayback>(recordingPath, autoAdvance);
const auto session = std::make_shared<Playback::ArSessionPlayback>(recordingPath, autoAdvance);
sessions.push_back(session);
return { session, ArCreateResult::SUCCESS, "" };*/
return { session, ArCreateResult::SUCCESS, "" };
}
catch (const std::exception& e)
{ // TODO error handling