video: add video
- adds incoming video
- adds webcam preview
- adds device enumeration
- adds daemon video signal handlers
- adds outgoing video
Tuleap: #1200
Change-Id: Ife5f6acc2ee400665e096e44e2111e03cab0299a
diff --git a/RingDebug.h b/RingDebug.h
index 83c1388..2398085 100644
--- a/RingDebug.h
+++ b/RingDebug.h
@@ -54,6 +54,20 @@
RingDebug() {}; // singleton
};
+void WriteLine(String^ str)
+{
+ std::wstringstream wStringstream;
+ wStringstream << str->Data() << "\n";
+ OutputDebugString(wStringstream.str().c_str());
+}
+
+void WriteException(Exception^ ex)
+{
+ std::wstringstream wStringstream;
+ wStringstream << "0x" << ex->HResult << ": " << ex->Message->Data();
+ OutputDebugString(wStringstream.str().c_str());
+}
+
#define MSG_(cstr) CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::Low, \
ref new DispatchedHandler([=]() { RingDebug::instance->print(cstr); }))