Code Monkey home page Code Monkey logo

ortclib-sdk's Introduction

INSTRUCTIONS

From your terminal, please clone the "ortclib-sdk" git repository (before cloning, please read IMPORTANT NOTES section below): git clone --recursive https://github.com/ortclib/ortclib-sdk.git

This repository will yield the ORTC Lib SDK and dependency libraries.

Directory structure:

  • ortc-lib-sdk\bin contains scripts for preparing an environment for Windows
  • ortc-lib-sdk\common contains samples applications that can use Ortc and WebRtc libraries. Currently it is only the case for PeerCC sample
  • ortc-lib-sdk\ortc contains code of Ortc and dependency libraries
  • ortc-lib-sdk\webrtc contains code of WebRtc and dependency libraries
  • ortc-lib-sdk\docs contains documentation

IMPORTANT NOTES:

  1. Ensure that Git is properly configured to handle line endings. Git setting for core.autocrlf needs to be set to true; you can check current setting for core.autocrlf using command: 'git config -l', or 'git config core.autocrlf', and you can change setting to true using 'git config --global core.autocrlf true'. Usefull links: https://help.github.com/articles/dealing-with-line-endings/ https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#__code_core_autocrlf_code (section core.autocrlf)
  2. Visual Studio 2015 is required
  3. Latest supported Win 10 SDK is 10.0.14393.x

How to Build:

WINDOWS BUILD :

  1. Run prepare script, from Windows Command Prompt (not from a terminal emulator):


cd ortclib-sdk
bin\prepare.bat


This script will prepare environment but it won't build webrtc projects. In this case webrtc project will be built from Visual Studio once you try to build Org.Ortc or Org.WebRtc.
  1. From VS2015, load ortc\windows\solutions\Ortc.sln for Ortc or webrtc\windows\solutions\WebRtc.sln for WebRtc development.

  2. Now you can build winrt libraries for Ortc or WebRtc and deploy sample apps ChatterBox (WebRtc only) and PeerCC.

====

ortclib-sdk's People

Contributors

robin-raymond avatar vmancic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ortclib-sdk's Issues

Different versions of WebRtc lib (compared with PeerConnectionUnityD3DCore)

@jamescadd I would like to response my result when playing with branch: https://github.com/ortclib/ortclib-sdk.git

I followed instructions and finally came up with WebRTC solution.
However, the whole solution didn't provide compatible PeerConnectionUnityD3DCore solution for Unity use, so I took it from branch: https://github.com/Microsoft/WebRTC-universal-samples.git.

There were something I figured out:

  1. WebRTC.StartTracing method:
    In Conductor.cs (PeerConnectionUnityD3DCore): WebRTC.StartTracing("webrtc-trace.txt");
    Method provided in built WebRtc lib: WebRTC.StartTracing();

  2. Org.WebRtc.WebRTC.SetPreferredVideoCaptureFormat method:
    In Conductor.cs (PeerConnectionUnityD3DCore): Org.WebRtc.WebRTC.SetPreferredVideoCaptureFormat(
    (int)VideoCaptureProfile.Width, (int)VideoCaptureProfile.Height, (int)VideoCaptureProfile.FrameRate, VideoCaptureProfile.MrcEnabled);

    Method provided in built WebRtc lib:
    Org.WebRtc.WebRTC.SetPreferredVideoCaptureFormat(
    (int)VideoCaptureProfile.Width, (int)VideoCaptureProfile.Height, (int)VideoCaptureProfile.FrameRate);

  3. Media.AddVideoTrackMediaElementPair & Media.RemoveVideoTrackMediaElementPair:
    Built WebRtc lib didn't provide these methods but PeerConnectionUnityD3DCore (Conductor.cs) called them.

  4. Media.CreateMedia().CreateMediaSource or Media.CreateMedia().CreateMediaStreamSource: methods
    In Conductor.cs (PeerConnectionUnityD3DCore):
    Media.CreateMedia().CreateMediaStreamSource(_selfVideoTrack, type, "SELF");
    Method provided in built WebRtc lib:
    Media.CreateMedia().CreateMediaSource(_selfVideoTrack, "SELF");

  5. Org.WebRtc.CodecInfo method:
    In Conductor.cs (PeerConnectionUnityD3DCore):
    Org.WebRtc.CodecInfo( int ClockRate, string Name)
    Method provided in built WebRtc lib:
    Org.WebRtc.CodecInfo( int Id, int ClockRate, string Name)

Because of these differences, I tried to modify PeerConnectionUnityD3DCore (mainly Conductor.cs) to be compatible with built WebRtc lib then deployed to Hololens.
After connected to a desktop peer the app threw exception as below:

Exception thrown: 'System.InvalidCastException' in Assembly-CSharp.dll
Exception thrown: 'System.InvalidCastException' in Assembly-CSharp.dll
Unable to cast object of type 'System.__ComObject' to type 'Windows.Media.Core.MediaStreamSource'.

after a few seconds, the app crashed with log as below:
The program '[2868] PeerCCUnity1.exe' has exited with code -1073741189 (0xc000027b).

Summary:
I figured out that there could be many different WebRtc versions. But after having a look on PeerConnectionUnityD3DCore, I think nuget WebRtc ver 1.62.1.1-Beta is the most suitable, However I cannot get .dll and .winmd files from nuget package. Thus, I will try to modify the WebRtc solution (from https://github.com/ortclib/ortclib-sdk.git branch) to get it compatible with PeerConnectionUnityD3DCore and fix the exception that I met.
Moreover, I would be very appreciated if you can provide me source code or .dll and .winmd files of WebRtc Nuget package ver 1.62.1.1-Beta, or any source of information that I can use to modify WebRtc solution myself.

[Mosa/20180320-peercc-unity]: PeerCCUnity on desktop throws exception on TransferVideoFrame()

I have a HoloLens Unity-based WebRTC application that is using the codebase in the Mosa/20180320-peercc-unity branch. This application is a copy of the PeerCCUnity project (same Conductor, Signalling scripts, etc) except that the UI elements appear in a full 3D HoloLens app rather than being in a 2D Hologram window. I can connect my HoloLens app to the normal PeerCC UWP XAML app (in the WebRtc.sln solution) and successfully receive MRC video from the HoloLens in the desktop PeerCC app (the video going the other way around has performance issues but that's for another day).

The issue I'm running into now is when I try to run PeerConnectionClientUnity (in the WebRtcUnityD3D.sln solution) as a Unity UWP app on my desktop, and connect to it from the HoloLens app. Both my HoloLens app and the desktop PeerConnectionClientUnity app can both connect to my signalling server, but when I try to press Call, I get a Platform::FailureException caused by the following line in MediaEnginePlayer.cpp:

MEDIA::ThrowIfFailed(
    m_spMediaEngine->TransferVideoFrame(m_primaryMediaTexture.Get(), &m_nRect, &m_rcTarget, &m_bkgColor)
);

The debug logs are attached at 2018-05-03_exception_peerccunity_desktop.txt

Has this issue been encountered before? I am using the same MediaEngineUWP plugin on my HoloLens app, which is not encountering this issue. Thanks in advance for any guidance you can provide!

Non UWP build

Any chance there are plans to be able to use this library in a regular .net application?

Generating nuget packages is broken for M66

Using the createNuget.bat script does not result in much more than just copying the template .sln to another folder; the buildWebRTC.bat script only shows the usage because a parameter is missing (due to changes to that script I suppose).

The background is that I'd like to create my own minimal sample to play around with the library without having to fiddle with its build system whenever there are upstream changes.

Anyway, I've fixed this and it seems to build and pack just fine. Should I submit a pull request for this?

Mac/iOS build instructions?

What are the steps required to build this on OSX ?
I've tried running ./bin/prepare-webrtc.sh, but that fails.

Could you point me in the right direction please ?

How to build m66 branch?

I've tried building the Robin/m66-msidl-new-mediasource branch because the current master is rather old and there's a lot of changes coming up. However, when trying to run the prepare.bat script it fails with the message CRITICAL ERROR: COULD NOT CREATE SYMBOLIC LINK TO chromium\src\third_party\jsoncpp\source FROM ..\jsoncpp.

Did the setup change from the steps described in the readme? The master branch builds without issues.

Problem with UI and other issues (PeerCC-Unity)

Hi there, I'm trying peercc sample on branch Mosa/20180320-peercc-unity and was able to run the app on HoloLens.

However, there are some problems I encountered:

  1. When I air tap the Connect button the text changes to Disconnect and quickly change back. The output suggests it established the connection with the server but disconnect immediately. I found a way avoid this problem by holding my finger a little bit longer
  2. The same problem happened when click the Call button. And this time the HoloLens began to recording (I can see it on the local video surface also the red recording icon was flashing) but PC (with the UWP app PeerConnectionClient.WebRtc running) cannot receive the stream. It shares the same way to avoid this problem
  3. When I click the buttons (Connect and Call) VS has lines of output "Invalid parameter passed to C runtime function." followed by "Exception thrown at 0x769DF2B2 in PeerCCUnity.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x0677F040."
  4. If initiate the call from PC using VP8 the HoloLens won't be able to receive video from PC
  5. The HoloLens app crashes after a few calls

I'm using VS2017 with Windows 10 SDK 10.0.16299.0, Unity 2018.2.15f1.

Any suggestions? Thanks in advance.

CRITICAL ERROR: Could not generate WebRTC projects for winuwp_10 platform, x64 CPU

I'm getting this error when running prepare.bat file.

Steps to reproduce

  1. Cloned the repo recursiveley, but apparently didn't get submodules to the latest version since common/windows/samples/PeerC contained only Client folder, instead of also ClientCore and ClientUnity

  2. Checkout to branch Mosa/20180320-peercc-unity

  3. Updated recursive submodules, I did this in order to get ClientCore and ClientUnity inside common/windows/samples/PeerC

  4. Run prepare.bat

Here is the full log

What I've tried

According to the suggestion to this issue I installed windows 10 sdk manually (16299) and checked debugger tools. But I get the same error when running prepare.bat.

I have VS2017 version 15.8.1.

I can share any additional info that you can need in order to help me.

Thanks in advance.

High latency during streaming

Hello there,

I'm using PeerCC to communicate with audio and video between an Hololens and a PC.
The issue is the extreme lag that affects the communication, even if I am streming video from Holo to PC only.

Do you experience the same? Any suggestion to improve this?

(In branch Master) WebRTC invalid folder structure. ..\yasm\patched-yasm does not exist #5

PS C:\Users\rober\Documents\Projects\ortclib-sdk> git log

commit 7f8e70f652d6315c71f3454070518494a724b73c (HEAD -> master, origin/master, origin/HEAD)
Author: Vladimir Mancic <[email protected]>
Date:   Mon Jan 29 15:22:26 2018 +0100
PS C:\Users\rober\Documents\Projects\ortclib-sdk> git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

When I run bin\prepare.bat

CRITICAL ERROR: WebRTC invalid folder structure. ..\yasm\patched-yasm does not exist

It's there:

C:\Users\rober\Documents\Projects\ortclib-sdk\webrtc\xplatform\yasm\patched-yasm\

I've done this successfully in the past, so I suspect a recent check in screwed up the directory structure

(It works in branch "releases/m62".)

m62 branch: broken ortclib-sdk\webrtc\windows\solutions\WebRtc.sln

//////////////////////////// error //////////////////////////////
4>webrtc.lib(files.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in DataChannel.obj

//////////////////////////// log ////////////////////////////
4>------ Build started: Project: Org.WebRtc.Uwp, Configuration: Debug x64 ------
4>DataChannel.cc
4>GlobalObserver.cc
4>Marshalling.cc
4>Media.cc
4>MediaSourceHelper.cc
4>PeerConnectionInterface.cc
4>RTMediaStreamSource.cc
4>WinUWPDeviceManager.cc
4>LINK : the 32-bit linker (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\link.exe) failed to do memory mapped file I/O on `C:\Work\mar26-ortclib-m62\ortclib-sdk\webrtc\windows\projects\msvc\Org.WebRtc.Uwp..........\webrtc\xplatform\webrtc\WEBRTC_BUILD\webrtc\Debug\x64\webrtc.lib' and is going to restart linking with a 64-bit linker for better throughput
4>LINK : failed to locate a 64-bit linker on %PATH%; continue the current linking
4>webrtc.lib(files.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in DataChannel.obj
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: bool __cdecl std::ios_base::good(void)const " (?good@ios_base@std@@QEBA_NXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: int __cdecl std::ios_base::flags(void)const " (?flags@ios_base@std@@QEBAHXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: __int64 __cdecl std::basic_streambuf<char,struct std::char_traits >::sputn(char const *,__int64)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: void __cdecl std::basic_ios<char,struct std::char_traits >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > * __cdecl std::basic_ios<char,struct std::char_traits >::tie(void)const " (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits > * __cdecl std::basic_ios<char,struct std::char_traits >::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: char __cdecl std::basic_ios<char,struct std::char_traits >::widen(char)const " (?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: void __cdecl std::basic_ostream<char,struct std::char_traits >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits > & __cdecl std::basic_ostream<char,struct std::char_traits >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: bool __cdecl std::ios_base::fail(void)const " (?fail@ios_base@std@@QEBA_NXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: __cdecl std::basic_streambuf<char,struct std::char_traits >::basic_streambuf<char,struct std::char_traits >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@iEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits >::~basic_streambuf<char,struct std::char_traits >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::eback(void)const " (?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::gptr(void)const " (?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::pptr(void)const " (?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::egptr(void)const " (?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits >::gbump(int)" (?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits >::setg(char *,char *,char *)" (?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::epptr(void)const " (?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits >::pbump(int)" (?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: void __cdecl std::basic_streambuf<char,struct std::char_traits >::setp(char *,char *)" (?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: virtual __cdecl std::basic_ios<char,struct std::char_traits >::~basic_ios<char,struct std::char_traits >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "protected: __cdecl std::basic_ios<char,struct std::char_traits >::basic_ios<char,struct std::char_traits >(void)" (??0?$basic_ios@DU?$char_traits@D@std@@@std@@iEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: __cdecl std::basic_ostream<char,struct std::char_traits >::basic_ostream<char,struct std::char_traits >(class std::basic_streambuf<char,struct std::char_traits > *,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@qeaa@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: virtual __cdecl std::basic_ostream<char,struct std::char_traits >::~basic_ostream<char,struct std::char_traits >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: __cdecl std::basic_istream<char,struct std::char_traits >::basic_istream<char,struct std::char_traits >(class std::basic_streambuf<char,struct std::char_traits > *,bool)" (??0?$basic_istream@DU?$char_traits@D@std@@@std@@qeaa@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: virtual __cdecl std::basic_istream<char,struct std::char_traits >::~basic_istream<char,struct std::char_traits >(void)" (??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: bool __cdecl std::ctype::is(short,char)const " (?is@?$ctype@D@std@@QEBA_NFD@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: static unsigned __int64 __cdecl std::ctype::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$ctype@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: bool __cdecl std::ios_base::eof(void)const " (?eof@ios_base@std@@QEBA_NXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: class std::locale __cdecl std::ios_base::getloc(void)const " (?getloc@ios_base@std@@qeba?AVlocale@2@XZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits >::snextc(void)" (?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: bool __cdecl std::basic_istream<char,struct std::char_traits >::_Ipfx(bool)" (?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits > & __cdecl std::basic_istream<char,struct std::char_traits >::read(char *,__int64)" (?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z) already defined in webrtc.lib(files.obj)
4>msvcprtd.lib(MSVCP140D_APP.dll) : error LNK2005: "public: __int64 __cdecl std::basic_istream<char,struct std::char_traits >::gcount(void)const " (?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ) already defined in webrtc.lib(files.obj)
4>LINK : fatal error LNK1104: cannot open file 'libcpmtd.lib'
4>Done building project "Org.WebRtc.Uwp.vcxproj" -- FAILED.
5>------ Build started: Project: PeerConnectionClient.WebRtc, Configuration: Debug x64 ------
5>CSC : error CS0006: Metadata file 'C:\Work\mar26-ortclib-m62\ortclib-sdk\webrtc\windows\solutions\Build\Output\Org.WebRtc.Uwp\Debug\x64\Org.WebRtc.winmd' could not be found
========== Build: 3 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

PeerCC Unity

Hi there, this is my situation:

I would like to have a Unity PeerCC Client for Hololens and a Unity PeerCC Client for PC (both UWP) talking each other.

I have this working in Debug mode only, because in release mode the compiler can't find MediaEngineUWP.dll and I can't find out how to fix this.

Are you guys able to build in release mode?

Invalid pointer WinRT-Information: deviceId is a required parameter

When I run an application using Ortclib on a device which does not have a webcam connected, the application crashes during Ice connection with the following exception:

Microsoft C++ exception: Platform::NullReferenceException ^ at memory location 0x0821F880. HRESULT:0x80004003 Invalid pointer WinRT-Information: deviceId is a required parameter.

If I connect a webcam, everything works just fine.
I use the latest version (1.0.54.1) of the ORTC Library from nuget

prepare.bat not prearing x64

Hello,

I'm trying to build the branch 20180320-peercc-unity but I can't seem to get past the bin/prepare.bat part. After downloading everything, I run the prepare.bat and this is what I get:

CRITICAL ERROR: Could not generate WebRTC projects for winuwp_10 platform, x64 CPU

FAILURE:Preparing WebRTC development environment has failed.
=======   WebRTC prepare script summary   =======
=======   platform   =========   result   =======
            arm                 not run
            x64                  failed
            x86                 not run
            win32               not run
=================================================

Here's a more detailed version with -loglevel 4

Pastebin Link

Any ideas why this is happening?

error during prepare: "Downloading python installer has failed"

Running prepare script ...
Running script parameters:
Target: all
Platform: all
Log level: 4
Preparing webRTC and ORTC development environment ...
Preparing development environment for ARM, x64, x86 and win32 platforms ...
depotToolsPathCheck entered...
NOTE: Installing Python and continuing build...
Installing Python ...
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At line:1 char:1

  • (new-object System.Net.WebClient).DownloadFile('https://www.python.or ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : WebException
    

CRITICAL ERROR: Downloading python installer has failed. Script execution will be terminated. Please, run script once more, if python doesn't get installed again, please do it manually.
FAILURE:Preparing environment has failed
Total execution time: 00:00:02 (2s total)

Error during sample Unity build (PeerCC-Unity)

(using branch Mosa/20180320-peercc-unity)
(downloaded using git clone --recursive -b Mosa/20180320-peercc-unity https://github.com/ortclib/ortclib-sdk.git)

Hello, after preparing and building the WebRtcUnityD3D solution, I open the Sample project (in ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\PeerCCUnity) and get this error whenever I try building that project's solution:

Severity Code Description Project File Line Suppression State Error The command ""D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\project.lock.json" -bits=32 -configuration=Release -removeDebuggableAttribute=False -uwpsdk=10.0.17134.0 -path="." -path="C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x86\Release" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\Assembly-CSharp.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.TilemapModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.TextRenderingModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.TerrainPhysicsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UIElementsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.TerrainModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.SpriteMaskModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.SharedInternalsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.StyleSheetsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.SpriteShapeModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UIModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.VRModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.VideoModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.VehiclesModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.WindModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.WebModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityWebRequestWWWModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityConnectModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityAnalyticsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UNETModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityWebRequestTextureModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityWebRequestModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UnityWebRequestAudioModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ScreenCaptureModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ClothModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.AudioModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.AssetBundleModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.DirectorModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.CrashReportingModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.CoreModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ARModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.AnimationModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.AIModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.AccessibilityModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ParticleSystemModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ParticlesLegacyModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.PhysicsModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.Physics2DModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.PerformanceReportingModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.JSONSerializeModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.GridModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.GameCenterModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.InputModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.IMGUIModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.ImageConversionModule.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.Timeline.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\nunit.framework.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.UI.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.SpatialTracking.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.HoloLens.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.StandardEvents.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\UnityEngine.Networking.dll" "D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\PeerConnectionClientCore.dll"" exited with code 1. PeerCCUnity D:\test8-27-07-2018\ortclib-sdk\common\windows\samples\PeerCC\ClientUnity\Unity\Build-Desktop - original\PeerCCUnity\PeerCCUnity.csproj 433

I've tried re-downloading and re-building the whole git project multiple times with no success, please help!

Hololens pose sync

I'm looking for a way to combine WebRTC with HoloLens synchronized pose data. Would peercc-unity example help me to achieve this purpose? where can I get your latest WebRTC HoloLens code running?
Regards,
Danilo.

Error during build for PeerCC Client

1>------ Build started: Project: WebRtc.Builder, Configuration: Debug x86 ------
2>------ Build started: Project: WebRtc.Stats.Observer, Configuration: Debug Win32 ------
3>------ Build started: Project: ChatterBoxClient.Universal.BackgroundRenderer, Configuration: Debug Win32 ------
4>------ Build started: Project: ChatterBox.Client.WebRTCSwapChainPanel, Configuration: Debug Win32 ------
2>Running message compiler on ......\org\webrtc\stats\etw_providers.man
4>WebRTCSwapChainPanel.cpp
3>MediaEngineNotify.cpp
3>RemoteHandle.cpp
3>Renderer.cpp
3>SchemeHandler.cpp
2>webrtc_stats_network_sender.cpp
2>webrtc_stats_observer.cpp
2>c:\users\rmaheshwari\git clones\ortclib-sdk\webrtc\xplatform\webrtc\webrtc\base\json.h(18): fatal error C1083: Cannot open include file: 'json/json.h': No such file or directory (compiling source file ......\org\webrtc\stats\webrtc_stats_network_sender.cpp)
4> Creating library ..\Output\ChatterBox.Client.WebRTCSwapChainPanel\bin\x86\Debug\ChatterBox.Client.WebRTCSwapChainPanel.lib and object ..\Output\ChatterBox.Client.WebRTCSwapChainPanel\bin\x86\Debug\ChatterBox.Client.WebRTCSwapChainPanel.exp
2>Done building project "WebRtc.Stats.Observer.vcxproj" -- FAILED.
5>------ Build started: Project: ChatterBox.Server, Configuration: Debug x86 ------
5> ChatterBox.Server -> C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\Output\ChatterBox.Server\bin\x86\Debug\ChatterBox.Server.exe
4>ChatterBox.Client.WebRTCSwapChainPanel.vcxproj -> C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\ChatterBox.Client.WebRTCSwapChainPanel..\Output\ChatterBox.Client.WebRTCSwapChainPanel\bin\x86\Debug\ChatterBox.Client.WebRTCSwapChainPanel.dll
1> [92mWebrtc build is started. It will take couple of minutes. [0m
1> [92mWorking ... [0m
1> [92mx86 [0m
1> [92mPlatform x86 [0m
1> Visual Studio path is "C:\Program
1> Determining compiler options ...
1> CPU arhitecture is x64
1> Selected compiler option is amd64_x86
1> Microsoft (R) Build Engine version 4.7.2556.0
1> [Microsoft .NET Framework, version 4.0.30319.42000]
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>MSBUILD : error MSB1009: Project file does not exist.
1> Switch: C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\projects\msvc\WebRtc.Builder.Universal..........\webrtc\xplatform\webrtc\webrtcLib.sln
1>
1>EXEC : [91mCRITICAL error : Building WebRTC projects for x86 has failed [0m
1>
1>
1> [91mFAILURE: Building WebRtc library has failed [0m
1>
1> [93mTotal execution time: 00:00:20 (20s total) [0m
1> 'C:\Users\rmaheshwari\Git' is not recognized as an internal or external command,
1> operable program or batch file.
1> Source path is C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug
1> Destination path is C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug....\WEBRTC_BUILD\webrtc\Debug\x86
1> C:\Users\rmaheshwari\Git folder already exists
1>EXEC : error : Invalid argument/option - 'clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug'.
1> Type "FORFILES /?" for usage.
1> The system cannot find the path specified.
1>
1>EXEC : [91mCRITICAL error : Failed combining libs [0m
1>
1>
1> [91mFAILURE: Building WebRtc library has failed [0m
1>
1> [93mTotal execution time: 00:00:21 (21s total) [0m
1> 'C:\Users\rmaheshwari\Git' is not recognized as an internal or external command,
1> operable program or batch file.
1> Moving pdbs from C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug to C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug....\WEBRTC_BUILD\webrtc\Debug\x86
1>EXEC : error : Invalid argument/option - 'clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug'.
1> Type "FORFILES /?" for usage.
1> C:\Users\rmaheshwari\Git folder already exists
1> Created folder C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\webrtc
1> The system cannot find the path specified.
1> Moving C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug to C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\webrtc
1> The syntax of the command is incorrect.
1>
1> [93mWARNING: Failed moving C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\Debug to C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\xplatform\webrtc\build_win10_x86\webrtc\ [0m
1>
1>
1> [92mSuccess: WebRtc library is built successfully. [0m
1>
1> [93mTotal execution time: 00:00:26 (26s total) [0m
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1331,5): error MSB3073: The command "call "C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\projects\msvc\WebRtc.Builder.Universal..........\bin\buildWebRTC.bat" "C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\projects\msvc\WebRtc.Builder.Universal..........\webrtc\xplatform\webrtc\webrtcLib.sln" Debug x86 webrtc" exited with code -1.
6>------ Build started: Project: Org.WebRtc (Api\Org.WebRtc\Org.WebRtc), Configuration: Debug Win32 ------
6>DataChannel.cc
6>GlobalObserver.cc
6>Marshalling.cc
6>Media.cc
3> Creating library ..\Output\ChatterBoxClient.Universal.BackgroundRenderer\bin\x86\Debug\ChatterBoxClient.Universal.BackgroundRenderer.lib and object ..\Output\ChatterBoxClient.Universal.BackgroundRenderer\bin\x86\Debug\ChatterBoxClient.Universal.BackgroundRenderer.exp
3>ChatterBoxClient.Universal.BackgroundRenderer.vcxproj -> C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\ChatterBoxClient.Universal.BackgroundRenderer..\Output\ChatterBoxClient.Universal.BackgroundRenderer\bin\x86\Debug\ChatterBoxClient.Universal.BackgroundRenderer.dll
7>------ Build started: Project: BackgroundHost, Configuration: Debug Win32 ------
6>MediaSourceHelper.cc
6>PeerConnectionInterface.cc
6>RTMediaStreamSource.cc
7>BackgroundHost.cpp
6>c:\users\rmaheshwari\git clones\ortclib-sdk\webrtc\windows\org\webrtc\wrapper\mediasourcehelper.cc(15): fatal error C1083: Cannot open include file: 'libyuv/convert.h': No such file or directory
6>WebRtcMediaSource.cc
6>c:\users\rmaheshwari\git clones\ortclib-sdk\webrtc\windows\org\webrtc\wrapper\rtmediastreamsource.cc(15): fatal error C1083: Cannot open include file: 'libyuv/convert.h': No such file or directory
6>WebRtcMediaStream.cc
7> Creating library ..\Output\BackgroundHost\bin\x86\Debug\BackgroundHost.lib and object ..\Output\BackgroundHost\bin\x86\Debug\BackgroundHost.exp
6>c:\users\rmaheshwari\git clones\ortclib-sdk\webrtc\windows\org\webrtc\wrapper\webrtcmediastream.cc(20): fatal error C1083: Cannot open include file: 'libyuv/convert.h': No such file or directory
7>BackgroundHost.vcxproj -> C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\BackgroundHost..\Output\BackgroundHost\bin\x86\Debug\BackgroundHost.exe
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2428,5): warning APPX0108: The certificate specified has expired. For more information about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478.
7>C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\Output\BackgroundHost\bin\x86\Debug\AppxManifest.xml : error APPX0501: Validation error. error 80080204: App manifest validation error: Line 47, Column 12, Reason: If it is not an audio background task, it is not allowed to have EntryPoint="ChatterBox.Background.Tasks.VoipTask" without ActivatableClassId in windows.activatableClass.inProcessServer.
7>Done building project "BackgroundHost.vcxproj" -- FAILED.
6>Done building project "Org.WebRtc.vcxproj" -- FAILED.
8>------ Build started: Project: ChatterBox.Background, Configuration: Debug x86 ------
9>------ Build started: Project: PeerConnectionClient.WebRtc, Configuration: Debug x86 ------
10>------ Build started: Project: appRTC_win_JS.Win10, Configuration: Debug x86 ------
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2427,6): warning MSB3851: This project targets "UAP, Version=10.0.14393.0", but it is attempting to reference "C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\solutions\Build\Output\x86\Debug\Org.WebRtc\Org.WebRtc.winmd" targeting "UAP,Version=10.0.17134.0", which is invalid.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2373,5): warning MSB3842: Project "appRTC_win_JS.Win10" depends upon SDK "Visual C++ 2015 Runtime for Universal Windows Platform Apps v14.0" which supports apps targeting "UAP 10.0". To verify whether "Visual C++ 2015 Runtime for Universal Windows Platform Apps v14.0" is compatible with "UAP 10.0.14393.0", contact the SDK author or see http://go.microsoft.com/fwlink/?LinkID=309181.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Microsoft.Common.targets\ImportBefore\Microsoft.Cpp.VCLibs120Universal.targets(103,5): warning MSB3842: Project "appRTC_win_JS.Win10" depends upon SDK "Microsoft Universal CRT Debug Runtime v10.0.14393.0" which supports apps targeting "UAP 10.0". To verify whether "Microsoft Universal CRT Debug Runtime v10.0.14393.0" is compatible with "UAP 10.0.14393.0", contact the SDK author or see http://go.microsoft.com/fwlink/?LinkID=309181.
10>MakePri : error 0x80070002: Processing Resources failed with error: The system cannot find the file specified.
10>MakePRI : warning 0xdef00520: Invalid qualifier: INTELLISENSE-SETUP
10>MakePRI : error 0xdef00071: File C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\solutions\Build\Output\x86\Debug\Org.WebRtc\Org.WebRtc.pri not found.
10>Done building project "appRTC_win_JS.Win10.jsproj" -- FAILED.
8>CSC : error CS0006: Metadata file 'C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\solutions\Build\Output\x86\Debug\Org.WebRtc\Org.WebRtc.winmd' could not be found
11>------ Build started: Project: ChatterBox (Samples\ChatterBox\Client\ChatterBox), Configuration: Debug x86 ------
9>CSC : error CS0006: Metadata file 'C:\Users\rmaheshwari\Git clones\ortclib-sdk\webrtc\windows\solutions\Build\Output\x86\Debug\Org.WebRtc\Org.WebRtc.winmd' could not be found
11>CSC : error CS0006: Metadata file 'C:\Users\rmaheshwari\Git clones\ortclib-sdk\common\windows\samples\ChatterBox\Output\ChatterBox.Background\bin\x86\Debug\ChatterBox.Background.winmd' could not be found
========== Build: 3 succeeded, 8 failed, 1 up-to-date, 0 skipped ==========

Question about Ortc.NetStandard

I've been trying to use this nuget package https://www.nuget.org/packages/Ortc.NetStandard/
In a dotnet standard project, but when trying to create RTCPeerConnection the code doesn't execute but displays no error. I'm wondering if this package is supposed to be used along side any other packages or if runs completely by itself on .netstandard? Also i see in my project two folders with x64 and x86 with libOrtc.dll, do i have to load these dlls somehow?

Thanks

Unable to build C++/WinRT client app

This applies to both, the currently published package on nuget.org as well as a locally built package from the Robin/m66-msidl branch.

When I create a new project in VS with the C++/WinRT Blank App template, I get these errors first:

error : Designtime build failed for project 'OrtcSampleClientCppWinRT.vcxproj' configuration 'Debug|Win32'. IntelliSense might be unavailable.
	Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.
error : Designtime build failed for project 'OrtcSampleClientCppWinRT.vcxproj' configuration 'Debug|Win32'. IntelliSense might be unavailable.
	Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.

When compiling the app I get the following MIDL errors:

error MIDL5092: [msg]this type or member is attempting to use the 'deprecated' attribute, but the construct it is being used on is not available on the version or platform specified. [context]: get_SdpMLineIndex [ Procedure 'get_SdpMLineIndex' ( Interface 'Org.Ortc.Adapter.__IRTCIceCandidatePublicNonVirtuals' ) ]
error MIDL5092: [msg]this type or member is attempting to use the 'deprecated' attribute, but the construct it is being used on is not available on the version or platform specified. [context]: set_SdpMLineIndex [ Procedure 'set_SdpMLineIndex' ( Interface 'Org.Ortc.Adapter.__IRTCIceCandidatePublicNonVirtuals' ) ]
error MIDL5092: [msg]this type or member is attempting to use the 'deprecated' attribute, but the construct it is being used on is not available on the version or platform specified. [context]: FromSdpStringWithMLineIndex [ Procedure 'FromSdpStringWithMLineIndex' ( Interface 'Org.Ortc.Adapter.__IRTCIceCandidateStatics' ) ]
error MIDL5092: [msg]this type or member is attempting to use the 'deprecated' attribute, but the construct it is being used on is not available on the version or platform specified. [context]: FromSdpStringWithMLineIndex [ Procedure 'FromSdpStringWithMLineIndex' ( Interface 'Org.Ortc.Adapter.__IRTCIceCandidateCompleteStatics' ) ]

A C# client works fine, so I guess it's something build system related. The target version I've selected is 1803.
Does anybody know what exactly is going wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.