Commit 36cd5da1 authored by Ghislain MARY's avatar Ghislain MARY

Add phone call background task (needed by the VoipCallCoordinator).

parent 1519a9f5
......@@ -4,9 +4,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Linphone", "Linphone\Linphone.csproj", "{6122CCBD-FB37-48CE-9C50-0C8A35003AE6}"
ProjectSection(ProjectDependencies) = postProject
{088A6C0F-16FA-4360-93C7-D781244E77FD} = {088A6C0F-16FA-4360-93C7-D781244E77FD}
{2D0E44C4-E51D-4911-B876-345D1E5E5209} = {2D0E44C4-E51D-4911-B876-345D1E5E5209}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MSWinRTVideo", "submodules\mswinrtvid\MSWinRTVideo.vcxproj", "{2D0E44C4-E51D-4911-B876-345D1E5E5209}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LinphoneTasks", "Linphone\Tasks\LinphoneTasks.csproj", "{088A6C0F-16FA-4360-93C7-D781244E77FD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -53,6 +59,22 @@ Global
{2D0E44C4-E51D-4911-B876-345D1E5E5209}.Release|x64.Build.0 = Release|x64
{2D0E44C4-E51D-4911-B876-345D1E5E5209}.Release|x86.ActiveCfg = Release|Win32
{2D0E44C4-E51D-4911-B876-345D1E5E5209}.Release|x86.Build.0 = Release|Win32
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|ARM.ActiveCfg = Debug|ARM
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|ARM.Build.0 = Debug|ARM
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|x64.ActiveCfg = Debug|x64
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|x64.Build.0 = Debug|x64
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|x86.ActiveCfg = Debug|x86
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Debug|x86.Build.0 = Debug|x86
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|Any CPU.Build.0 = Release|Any CPU
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|ARM.ActiveCfg = Release|ARM
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|ARM.Build.0 = Release|ARM
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|x64.ActiveCfg = Release|x64
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|x64.Build.0 = Release|x64
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|x86.ActiveCfg = Release|x86
{088A6C0F-16FA-4360-93C7-D781244E77FD}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
......@@ -360,6 +360,10 @@
<Project>{2d0e44c4-e51d-4911-b876-345d1e5e5209}</Project>
<Name>MSWinRTVideo</Name>
</ProjectReference>
<ProjectReference Include="Tasks\LinphoneTasks.csproj">
<Project>{088a6c0f-16fa-4360-93c7-d781244e77fd}</Project>
<Name>LinphoneTasks</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<SDKReference Include="WindowsMobile, Version=10.0.10586.0">
......
......@@ -26,6 +26,8 @@ using Windows.Storage;
using Windows.Phone.Media.Devices;
using Windows.System.Profile;
using Windows.Networking.PushNotifications;
using Windows.ApplicationModel.Calls;
using LinphoneTasks;
namespace Linphone.Model
{
......@@ -101,6 +103,14 @@ namespace Linphone.Model
public LinphoneManager()
{
LastKnownState = RegistrationState.None;
Init();
}
private async void Init()
{
var vcc = VoipCallCoordinator.GetDefault();
var entryPoint = typeof(PhoneCallTask).FullName;
var status = await vcc.ReserveCallResourcesAsync(entryPoint);
}
......@@ -334,8 +344,6 @@ namespace Linphone.Model
{
get
{
//AudioRoutingManager
//
return AudioRoutingManager.GetDefault().GetAudioEndpoint() == AudioRoutingEndpoint.Speakerphone;
}
set
......
......@@ -18,6 +18,15 @@
<uap:VisualElements DisplayName="Linphone" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Linphone" BackgroundColor="transparent">
<uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#444444" />
</uap:VisualElements>
<Extensions>
<Extension Category="windows.backgroundTasks" EntryPoint="LinphoneTasks.PhoneCallTask">
<BackgroundTasks>
<uap:Task Type="phoneCall" />
</BackgroundTasks>
</Extension>
<uap:Extension Category="windows.voipCall">
</uap:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment