Commit 68627672 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Poll change of received video size to reopen the stream of the MediaElement if needed.

parent 4042b049
......@@ -517,7 +517,13 @@ namespace Linphone.Views
videoPayloadType = videopt.MimeType;
}
Windows.Foundation.Size receivedVideoSize = param.ReceivedVideoSize;
((InCallModel)ViewModel).ReceivedVideoSize = String.Format("{0}x{1}", receivedVideoSize.Width, receivedVideoSize.Height);
String NewReceivedVideoSize = String.Format("{0}x{1}", receivedVideoSize.Width, receivedVideoSize.Height);
if (((InCallModel)ViewModel).ReceivedVideoSize != NewReceivedVideoSize)
{
((InCallModel)ViewModel).ReceivedVideoSize = String.Format("{0}x{1}", receivedVideoSize.Width, receivedVideoSize.Height);
((InCallModel)ViewModel).HideVideo();
((InCallModel)ViewModel).ShowVideo();
}
Windows.Foundation.Size sentVideoSize = param.SentVideoSize;
((InCallModel)ViewModel).SentVideoSize = String.Format("{0}x{1}", sentVideoSize.Width, sentVideoSize.Height);
((InCallModel)ViewModel).VideoStatsVisibility = Visibility.Visible;
......
mswp8vid @ 84ba00b2
Subproject commit 2e0244398030b2fd57f0c1e86688537c6e00b944
Subproject commit 84ba00b2e7d6cbc302e73b42786d860f6664e72c
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