Commit 9a9bf1f6 authored by Margaux Clerc's avatar Margaux Clerc

Detect H264 and hide chat settings

parent d4d6aa2c
......@@ -101,8 +101,8 @@
</StackPanel>
</PivotItem>
<!--Pivot item Chat-->
<PivotItem Header="ChatMenu" x:Uid="ChatMenu">
<!--Pivot item Chat
<PivotItem Header="ChatMenu" x:Uid="ChatMenu" Visibility="Collapsed">
<StackPanel Orientation="Vertical">
<ToggleSwitch
x:Name="vibrator"
......@@ -115,7 +115,7 @@
Header="ResizeSetting">
</ToggleSwitch>
</StackPanel>
</PivotItem>
</PivotItem> -->
<!--Pivot item Debug-->
<PivotItem Header="DebugMenu" x:Uid="DebugMenu">
......
......@@ -45,8 +45,8 @@ namespace Linphone.Views
rfc2833.IsOn = (bool) _callSettings.SendDTFMsRFC2833;
sipInfo.IsOn = (bool) _callSettings.SendDTFMsSIPInfo;
vibrator.IsOn = (bool) _chatSettings.VibrateOnIncomingMessage;
resizeDown.IsOn = (bool) _chatSettings.ScaleDownSentPictures;
//vibrator.IsOn = (bool) _chatSettings.VibrateOnIncomingMessage;
//resizeDown.IsOn = (bool) _chatSettings.ScaleDownSentPictures;
List<string> mediaEncryptions = new List<string>
{
......@@ -104,8 +104,8 @@ namespace Linphone.Views
}
_networkSettings.Save();
_chatSettings.VibrateOnIncomingMessage = vibrator.IsOn;
_chatSettings.ScaleDownSentPictures = resizeDown.IsOn;
//_chatSettings.VibrateOnIncomingMessage = vibrator.IsOn;
//_chatSettings.ScaleDownSentPictures = resizeDown.IsOn;
_chatSettings.Save();
_settings.DebugEnabled = (bool)Debug.IsOn;
......
......@@ -61,6 +61,7 @@
<ToggleSwitch
Grid.Row="0"
x:Name="H264"
Visibility="Collapsed"
x:Uid="H264Codec"
Header="H264Codec">
</ToggleSwitch>
......
......@@ -14,9 +14,12 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
using BelledonneCommunications.Linphone.Native;
using Linphone.Model;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
......@@ -53,6 +56,13 @@ namespace Linphone.Views
PreferredVideoSize.SelectedItem = _callSettings.PreferredVideoSize;
_codecsSettings.Load();
foreach (PayloadType p in LinphoneManager.Instance.Core.VideoCodecs)
{
if (p.Equals("H264"))
{
H264.Visibility = Visibility.Visible;
}
}
H264.IsOn = _codecsSettings.H264;
VP8.IsOn = _codecsSettings.VP8;
}
......
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