Skip to content
Snippets Groups Projects
Commit 182d8fdd authored by ginoecb's avatar ginoecb
Browse files

Adding Apollo Lens Comm files

parent 9c4baafe
No related branches found
No related tags found
No related merge requests found
Showing
with 122 additions and 81 deletions
......@@ -67,7 +67,6 @@ Global
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Debug|x64.Deploy.0 = Debug|x64
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Debug|x86.ActiveCfg = Debug|x86
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Debug|x86.Build.0 = Debug|x86
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Debug|x86.Deploy.0 = Debug|x86
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Release|Any CPU.ActiveCfg = Release|x86
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Release|ARM.ActiveCfg = Release|ARM
{81835095-F937-4D1D-A4FE-41B24047C8C6}.Release|ARM.Build.0 = Release|ARM
......
......@@ -18,13 +18,6 @@
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
<PackageCertificateKeyFile>ApolloLensClient_TemporaryKey.pfx</PackageCertificateKeyFile>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x86</AppxBundlePlatforms>
<PackageCertificateThumbprint>F71A1E23B007F5048A25EA2866FFFB83FF9FA45F</PackageCertificateThumbprint>
<AppInstallerUpdateFrequency>1</AppInstallerUpdateFrequency>
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
......
......@@ -19,10 +19,6 @@ namespace ApolloLensClient
{
private IConductor conductor { get; } = Conductor.Instance;
// Added
private bool ConnectToComm = false;
private bool ConnectToSource = false;
public MainPage()
{
this.DataContext = this;
......@@ -80,17 +76,7 @@ namespace ApolloLensClient
this.conductor.UISignaller.ReceivedPlain += (s, message) =>
{
if (message == "COMM_READY")
{
Logger.Log("Starting call....");
this.conductor.StartCall();
//this.conductor.StartCall2();
}
else
{
Logger.Log(message);
}
//Logger.Log(message);
Logger.Log(message);
};
}
......@@ -99,36 +85,16 @@ namespace ApolloLensClient
private async void SayHiButton_Click(object sender, RoutedEventArgs e)
{
var message = "Hello World!";
var message = "Hello, World!";
await this.conductor.UISignaller.SendPlain(message);
Logger.Log($"Sent {message} to any connected peers");
}
private async void SourceConnectButton_Click(object sender, RoutedEventArgs e)
{
//Logger.Log("Starting connection to source...");
//await this.conductor.StartCall();
//Logger.Log("Connection started...");
// TODO: Change this
if (!ConnectToComm)
{
Logger.Log("Connecting to Comm ...");
await this.conductor.UISignaller.SendPlain("COMM");
//this.conductor.Fak();
ConnectToComm = true;
}
/*else if (!ConnectedToSource)
{
Logger.Log("Connecting to Source");
await this.conductor.UISignaller.SendPlain("SOURCE");
ConnectedToSource = true;
}*/
else
{
Logger.Log("Connection in progress, please wait");
}
Logger.Log("Starting connection to source...");
await this.conductor.StartCall();
Logger.Log("Connection started...");
}
#endregion
......
......@@ -18,13 +18,6 @@
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
<PackageCertificateKeyFile>ApolloLensClient_TemporaryKey.pfx</PackageCertificateKeyFile>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x86</AppxBundlePlatforms>
<PackageCertificateThumbprint>F71A1E23B007F5048A25EA2866FFFB83FF9FA45F</PackageCertificateThumbprint>
<AppInstallerUpdateFrequency>1</AppInstallerUpdateFrequency>
<AppInstallerCheckForUpdateFrequency>OnApplicationRun</AppInstallerCheckForUpdateFrequency>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
......
ApolloLensComm/Assets/LockScreenLogo.scale-200.png

1.4 KiB

ApolloLensComm/Assets/SplashScreen.scale-200.png

7.52 KiB

ApolloLensComm/Assets/Square150x150Logo.scale-200.png

2.87 KiB

ApolloLensComm/Assets/Square44x44Logo.scale-200.png

1.61 KiB

ApolloLensComm/Assets/Square44x44Logo.targetsize-24_altform-unplated.png

1.23 KiB

ApolloLensComm/Assets/StoreLogo.png

1.42 KiB

ApolloLensComm/Assets/Wide310x150Logo.scale-200.png

3.13 KiB

......@@ -90,16 +90,7 @@ namespace ApolloLensComm
this.conductor.UISignaller.ReceivedPlain += (s, message) =>
{
if (message == "COMM")
{
this.conductor.Reinitialize(config);
this.conductor.UISignaller.SendPlain("COMM_READY");
}
else if (message != "SOURCE")
{
Logger.Log(message);
}
//Logger.Log(message);
Logger.Log(message);
};
var devices = await this.conductor.GetVideoDevices();
......
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
IgnorableNamespaces="uap mp">
<Identity
Name="3cd30612-6518-4fc9-b6bd-f62ab22565c8"
Publisher="CN=nkeuning"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="3cd30612-6518-4fc9-b6bd-f62ab22565c8" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>ApolloLensComm</DisplayName>
<PublisherDisplayName>nkeuning</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="ApolloLensComm.App">
<uap:VisualElements
DisplayName="ApolloLensComm"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="ApolloLensComm"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="internetClientServer" />
<Capability Name="privateNetworkClientServer" />
<DeviceCapability Name="webcam" />
<DeviceCapability Name="microphone" /> </Capabilities>
</Package>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ApolloLensClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ApolloLensClient")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]
\ No newline at end of file
<!--
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
developers. However, you can modify these parameters to modify the behavior of the .NET Native
optimizer.
Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919
To fully enable reflection for App1.MyClass and all of its public/private members
<Type Name="App1.MyClass" Dynamic="Required All"/>
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<!--
An Assembly element with Name="*Application*" applies to all assemblies in
the application package. The asterisks are not wildcards.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<Type Name="Org.WebRtc.RTCSdpType" MarshalObject="Required All" />
<Type Name="Org.WebRtc.RTCIceCandidate" MarshalObject="Required All" />
<Type Name="Org.WebRtc.RTCSessionDescription" MarshalObject="Required All" />
<!-- Add your application specific runtime directives here. -->
</Application>
</Directives>
\ No newline at end of file
......@@ -87,18 +87,7 @@ namespace ApolloLensSource
this.conductor.UISignaller.ReceivedPlain += (s, message) =>
{
if (message == "COMM")
{
Logger.Log(message);
// Disconnect from Server
this.Connected.Hide();
signaller.DisconnectFromServer();
this.NotConnected.Show();
}
else
{
Logger.Log(message);
}
Logger.Log(message);
};
var devices = await this.conductor.GetVideoDevices();
......
......@@ -72,7 +72,6 @@ namespace ApolloLensLibrary.WebRtc
/// <param name="config"></param>
/// <returns></returns>
Task Initialize(ConductorConfig config);
Task Reinitialize(ConductorConfig config);
/// <summary>
/// Start a "call" based on the current
......@@ -80,7 +79,6 @@ namespace ApolloLensLibrary.WebRtc
/// </summary>
/// <returns></returns>
Task StartCall();
Task StartCall2();
/// <summary>
/// Shut down a running call, release most
......@@ -88,9 +86,6 @@ namespace ApolloLensLibrary.WebRtc
/// </summary>
/// <returns></returns>
Task Shutdown();
// Added
void Fak();
}
/// <summary>
......
File added
File added
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment