forked from mirrors/linphone-iphone
Add call quality indicator in video mode
This commit is contained in:
parent
a7ac89fd79
commit
d30ce42682
8 changed files with 168 additions and 145 deletions
|
|
@ -148,21 +148,7 @@ NSTimer *callQualityRefresher;
|
|||
}
|
||||
}
|
||||
UIImageView* callquality = (UIImageView*) [cell viewWithTag:3];
|
||||
if (linphone_call_get_average_quality(call) >= 4) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_4]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 3) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_3]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 2) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_2]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 1) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_1]];
|
||||
}
|
||||
else {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_0]];
|
||||
}
|
||||
[IncallViewController updateIndicator:callquality withCallQuality:linphone_call_get_average_quality(call)];
|
||||
tableView.rowHeight = 80;
|
||||
|
||||
return cell;
|
||||
|
|
|
|||
|
|
@ -45,12 +45,12 @@
|
|||
<string key="NSFrameSize">{768, 805}</string>
|
||||
<reference key="NSSuperview" ref="134115264"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="268077918"/>
|
||||
<reference key="NSNextKeyView" ref="352407616"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:408</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MSAwAA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="351240345">
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="535615360">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
|
|
@ -63,53 +63,53 @@
|
|||
<float key="IBUISectionHeaderHeight">22</float>
|
||||
<float key="IBUISectionFooterHeight">22</float>
|
||||
</object>
|
||||
<object class="IBUIView" id="268077918">
|
||||
<object class="IBUIView" id="352407616">
|
||||
<reference key="NSNextResponder" ref="134115264"/>
|
||||
<int key="NSvFlags">-2147483374</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIImageView" id="202372206">
|
||||
<reference key="NSNextResponder" ref="268077918"/>
|
||||
<object class="IBUIImageView" id="166693649">
|
||||
<reference key="NSNextResponder" ref="352407616"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrameSize">{768, 1024}</string>
|
||||
<reference key="NSSuperview" ref="268077918"/>
|
||||
<reference key="NSSuperview" ref="352407616"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="1000324624"/>
|
||||
<reference key="NSNextKeyView" ref="689463862"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:569</string>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="70050671">
|
||||
<reference key="NSNextResponder" ref="268077918"/>
|
||||
<object class="IBUIImageView" id="208410573">
|
||||
<reference key="NSNextResponder" ref="352407616"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 956}, {28, 28}}</string>
|
||||
<reference key="NSSuperview" ref="268077918"/>
|
||||
<reference key="NSSuperview" ref="352407616"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="1044210264"/>
|
||||
<reference key="NSNextKeyView" ref="527054061"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:567</string>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="1044210264">
|
||||
<reference key="NSNextResponder" ref="268077918"/>
|
||||
<object class="IBUIView" id="527054061">
|
||||
<reference key="NSNextResponder" ref="352407616"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{598, 799}, {170, 225}}</string>
|
||||
<reference key="NSSuperview" ref="268077918"/>
|
||||
<reference key="NSSuperview" ref="352407616"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="815826897"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="351240345"/>
|
||||
<reference key="NSCustomColorSpace" ref="535615360"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBUIButton" id="1000324624">
|
||||
<reference key="NSNextResponder" ref="268077918"/>
|
||||
<object class="IBUIButton" id="689463862">
|
||||
<reference key="NSNextResponder" ref="352407616"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{0, 962}, {108, 62}}</string>
|
||||
<reference key="NSSuperview" ref="268077918"/>
|
||||
<reference key="NSSuperview" ref="352407616"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="70050671"/>
|
||||
<reference key="NSNextKeyView" ref="208410573"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
<int key="traits">2</int>
|
||||
<double key="pointSize">15</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont" id="207151297">
|
||||
<object class="NSFont" key="IBUIFont" id="905592210">
|
||||
<string key="NSName">Helvetica-Bold</string>
|
||||
<double key="NSSize">15</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
<string key="NSFrameSize">{768, 1024}</string>
|
||||
<reference key="NSSuperview" ref="134115264"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="202372206"/>
|
||||
<reference key="NSNextKeyView" ref="166693649"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:212</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="948655818">
|
||||
<int key="NSColorSpace">3</int>
|
||||
|
|
@ -191,7 +191,7 @@
|
|||
<string key="NSResourceName">clavier-01-106px.png</string>
|
||||
</object>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{224, 937}, {320, 77}}</string>
|
||||
|
|
@ -490,7 +490,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="171697004">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -513,7 +513,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="855969656">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -536,7 +536,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="274639717">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -556,7 +556,7 @@
|
|||
<reference key="IBUINormalTitleColor" ref="1025442286"/>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="167373992">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -579,7 +579,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="9029257">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -602,7 +602,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="46522822">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -625,7 +625,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="767525360">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -648,7 +648,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="686137646">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -671,7 +671,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="693786132">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -694,7 +694,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="713296002">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -717,7 +717,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="1017517001">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -740,7 +740,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
<object class="IBUIButton" id="778910645">
|
||||
<reference key="NSNextResponder" ref="815826897"/>
|
||||
|
|
@ -763,7 +763,7 @@
|
|||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="275823755"/>
|
||||
<reference key="IBUIFontDescription" ref="42405739"/>
|
||||
<reference key="IBUIFont" ref="207151297"/>
|
||||
<reference key="IBUIFont" ref="905592210"/>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{178, 146}, {320, 310}}</string>
|
||||
|
|
@ -1020,7 +1020,7 @@
|
|||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">videoGroup</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="268077918"/>
|
||||
<reference key="destination" ref="352407616"/>
|
||||
</object>
|
||||
<int key="connectionID">159</int>
|
||||
</object>
|
||||
|
|
@ -1028,7 +1028,7 @@
|
|||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">videoView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="202372206"/>
|
||||
<reference key="destination" ref="166693649"/>
|
||||
</object>
|
||||
<int key="connectionID">161</int>
|
||||
</object>
|
||||
|
|
@ -1036,10 +1036,18 @@
|
|||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">videoPreview</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="1044210264"/>
|
||||
<reference key="destination" ref="527054061"/>
|
||||
</object>
|
||||
<int key="connectionID">162</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">videoCallQuality</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="208410573"/>
|
||||
</object>
|
||||
<int key="connectionID">163</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">dataSource</string>
|
||||
|
|
@ -1119,7 +1127,7 @@
|
|||
<reference ref="331380355"/>
|
||||
<reference ref="677109388"/>
|
||||
<reference ref="447519759"/>
|
||||
<reference ref="268077918"/>
|
||||
<reference ref="352407616"/>
|
||||
</array>
|
||||
<reference key="parent" ref="903665573"/>
|
||||
</object>
|
||||
|
|
@ -1307,37 +1315,37 @@
|
|||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">152</int>
|
||||
<reference key="object" ref="268077918"/>
|
||||
<reference key="object" ref="352407616"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="1044210264"/>
|
||||
<reference ref="202372206"/>
|
||||
<reference ref="1000324624"/>
|
||||
<reference ref="70050671"/>
|
||||
<reference ref="527054061"/>
|
||||
<reference ref="166693649"/>
|
||||
<reference ref="689463862"/>
|
||||
<reference ref="208410573"/>
|
||||
</array>
|
||||
<reference key="parent" ref="134115264"/>
|
||||
<string key="objectName">video</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">158</int>
|
||||
<reference key="object" ref="1044210264"/>
|
||||
<reference key="parent" ref="268077918"/>
|
||||
<reference key="object" ref="527054061"/>
|
||||
<reference key="parent" ref="352407616"/>
|
||||
<string key="objectName">video_preview</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">157</int>
|
||||
<reference key="object" ref="202372206"/>
|
||||
<reference key="parent" ref="268077918"/>
|
||||
<reference key="object" ref="166693649"/>
|
||||
<reference key="parent" ref="352407616"/>
|
||||
<string key="objectName">video_view</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">154</int>
|
||||
<reference key="object" ref="1000324624"/>
|
||||
<reference key="parent" ref="268077918"/>
|
||||
<reference key="object" ref="689463862"/>
|
||||
<reference key="parent" ref="352407616"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">153</int>
|
||||
<reference key="object" ref="70050671"/>
|
||||
<reference key="parent" ref="268077918"/>
|
||||
<reference key="object" ref="208410573"/>
|
||||
<reference key="parent" ref="352407616"/>
|
||||
<string key="objectName">call_quality_video</string>
|
||||
</object>
|
||||
</array>
|
||||
|
|
@ -1408,7 +1416,7 @@
|
|||
<nil key="activeLocalization"/>
|
||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">162</int>
|
||||
<int key="maxID">163</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
|
|
@ -1453,6 +1461,7 @@
|
|||
<string key="star">UIButton</string>
|
||||
<string key="three">UIButton</string>
|
||||
<string key="two">UIButton</string>
|
||||
<string key="videoCallQuality">UIImageView</string>
|
||||
<string key="videoGroup">UIView</string>
|
||||
<string key="videoPreview">UIView</string>
|
||||
<string key="videoView">UIView</string>
|
||||
|
|
@ -1564,6 +1573,10 @@
|
|||
<string key="name">two</string>
|
||||
<string key="candidateClassName">UIButton</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="videoCallQuality">
|
||||
<string key="name">videoCallQuality</string>
|
||||
<string key="candidateClassName">UIImageView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="videoGroup">
|
||||
<string key="name">videoGroup</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
UIView* videoGroup;
|
||||
UIView* videoView;
|
||||
UIView* videoPreview;
|
||||
UIImageView* videoCallQuality;
|
||||
|
||||
bool dismissed;
|
||||
|
||||
|
|
@ -87,18 +88,13 @@
|
|||
NSTimer* hideControlsTimer;
|
||||
}
|
||||
|
||||
+ (UIImage*) stat_sys_signal_0;
|
||||
+ (UIImage*) stat_sys_signal_1;
|
||||
+ (UIImage*) stat_sys_signal_2;
|
||||
+ (UIImage*) stat_sys_signal_3;
|
||||
+ (UIImage*) stat_sys_signal_4;
|
||||
|
||||
-(void)displayStatus:(NSString*) message;
|
||||
|
||||
- (IBAction)doAction:(id)sender;
|
||||
|
||||
+(LinphoneCall*) retrieveCallAtIndex: (NSInteger) index inConference:(bool) conf;
|
||||
+ (void) updateCellImageView:(UIImageView*)imageView Label:(UILabel*)label DetailLabel:(UILabel*)detailLabel AndAccessoryView:(UIView*)accessoryView withCall:(LinphoneCall*) call;
|
||||
+(void) updateIndicator:(UIImageView*) indicator withCallQuality:(float) quality;
|
||||
|
||||
@property (nonatomic, retain) IBOutlet UIView* controlSubView;
|
||||
@property (nonatomic, retain) IBOutlet UIView* padSubView;
|
||||
|
|
@ -134,4 +130,5 @@
|
|||
@property (nonatomic, retain) IBOutlet UIView* videoGroup;
|
||||
@property (nonatomic, retain) IBOutlet UIView* videoView;
|
||||
@property (nonatomic, retain) IBOutlet UIView* videoPreview;
|
||||
@property (nonatomic, retain) IBOutlet UIImageView* videoCallQuality;
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -70,28 +70,23 @@ const NSInteger SECURE_BUTTON_TAG=5;
|
|||
@synthesize videoGroup;
|
||||
@synthesize videoView;
|
||||
@synthesize videoPreview;
|
||||
@synthesize videoCallQuality;
|
||||
|
||||
@synthesize addVideo;
|
||||
|
||||
|
||||
+ (UIImage*) stat_sys_signal_0 {
|
||||
return [UIImage imageNamed:@"stat_sys_signal_0.png"];
|
||||
}
|
||||
|
||||
+ (UIImage*) stat_sys_signal_1 {
|
||||
return [UIImage imageNamed:@"stat_sys_signal_1.png"];
|
||||
}
|
||||
|
||||
+ (UIImage*) stat_sys_signal_2 {
|
||||
return [UIImage imageNamed:@"stat_sys_signal_2.png"];
|
||||
}
|
||||
|
||||
+ (UIImage*) stat_sys_signal_3 {
|
||||
return [UIImage imageNamed:@"stat_sys_signal_3.png"];
|
||||
}
|
||||
|
||||
+ (UIImage*) stat_sys_signal_4 {
|
||||
return [UIImage imageNamed:@"stat_sys_signal_4.png"];
|
||||
+(void) updateIndicator:(UIImageView*) indicator withCallQuality:(float) quality {
|
||||
if (quality >= 4 || quality < 0) {
|
||||
[indicator setImage:[UIImage imageNamed:@"stat_sys_signal_4.png"]];
|
||||
} else if (quality >= 3) {
|
||||
[indicator setImage:[UIImage imageNamed:@"stat_sys_signal_3.png"]];
|
||||
} else if (quality >= 2) {
|
||||
[indicator setImage:[UIImage imageNamed:@"stat_sys_signal_2.png"]];
|
||||
} else if (quality >= 1) {
|
||||
[indicator setImage:[UIImage imageNamed:@"stat_sys_signal_1.png"]];
|
||||
} else {
|
||||
[indicator setImage:[UIImage imageNamed:@"stat_sys_signal_0.png"]];
|
||||
}
|
||||
}
|
||||
|
||||
bool isInConference(LinphoneCall* call) {
|
||||
|
|
@ -172,6 +167,7 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
addCall.imageView.transform = transform;
|
||||
addVideo.imageView.transform = transform;
|
||||
dialer.imageView.transform = transform;
|
||||
videoCallQuality.transform = transform;
|
||||
[UIView commitAnimations];
|
||||
}
|
||||
}
|
||||
|
|
@ -251,6 +247,7 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
contacts.imageView.transform = CGAffineTransformIdentity;
|
||||
addCall.imageView.transform = CGAffineTransformIdentity;
|
||||
dialer.imageView.transform = CGAffineTransformIdentity;
|
||||
videoCallQuality.transform = CGAffineTransformIdentity;
|
||||
|
||||
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
|
||||
}
|
||||
|
|
@ -288,12 +285,14 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
if (linphone_call_get_state(selectedCall) == LinphoneCallStreamsRunning) {
|
||||
if (linphone_call_params_video_enabled(linphone_call_get_current_params(selectedCall))) {
|
||||
[addVideo setTitle:NSLocalizedString(@"-video", nil) forState:UIControlStateNormal];
|
||||
[IncallViewController updateIndicator: videoCallQuality withCallQuality:linphone_call_get_average_quality(selectedCall)];
|
||||
} else {
|
||||
[addVideo setTitle:NSLocalizedString(@"+video", nil) forState:UIControlStateNormal];
|
||||
}
|
||||
[addVideo setEnabled:YES];
|
||||
} else {
|
||||
[addVideo setEnabled:NO];
|
||||
[videoCallQuality setImage:nil];
|
||||
}
|
||||
} else {
|
||||
if (callsCount == 1) {
|
||||
|
|
@ -842,21 +841,7 @@ void addAnimationFadeTransition(UIView* view, float duration) {
|
|||
[callquality setFrame:CGRectMake(0, 0, 28, 28)];
|
||||
if (call->state == LinphoneCallStreamsRunning)
|
||||
{
|
||||
if (linphone_call_get_average_quality(call) >= 4) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_4]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 3) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_3]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 2) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_2]];
|
||||
}
|
||||
else if (linphone_call_get_average_quality(call) >= 1) {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_1]];
|
||||
}
|
||||
else {
|
||||
[callquality setImage: [IncallViewController stat_sys_signal_0]];
|
||||
}
|
||||
[IncallViewController updateIndicator: callquality withCallQuality:linphone_call_get_average_quality(call)];
|
||||
}
|
||||
else {
|
||||
[callquality setImage:nil];
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
</object>
|
||||
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>IBUIImageView</string>
|
||||
<string>IBUIViewController</string>
|
||||
<string>IBUIButton</string>
|
||||
<string>IBUIView</string>
|
||||
|
|
@ -53,7 +54,7 @@
|
|||
<string key="NSFrameSize">{320, 480}</string>
|
||||
<reference key="NSSuperview" ref="1009068048"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="673568144"/>
|
||||
<reference key="NSNextKeyView" ref="358633022"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:196</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="95762599">
|
||||
<int key="NSColorSpace">3</int>
|
||||
|
|
@ -77,6 +78,17 @@
|
|||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="358633022">
|
||||
<reference key="NSNextResponder" ref="1009068048"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{4, 428}, {28, 28}}</string>
|
||||
<reference key="NSSuperview" ref="1009068048"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="673568144"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:567</string>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{320, 460}</string>
|
||||
<reference key="NSSuperview" ref="858247959"/>
|
||||
|
|
@ -872,14 +884,6 @@
|
|||
</object>
|
||||
<int key="connectionID">51</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">eight</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="175014683"/>
|
||||
</object>
|
||||
<int key="connectionID">75</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">six</string>
|
||||
|
|
@ -1008,6 +1012,22 @@
|
|||
</object>
|
||||
<int key="connectionID">133</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">eight</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="175014683"/>
|
||||
</object>
|
||||
<int key="connectionID">75</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">videoCallQuality</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="358633022"/>
|
||||
</object>
|
||||
<int key="connectionID">138</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">doAction:</string>
|
||||
|
|
@ -1146,12 +1166,6 @@
|
|||
<reference key="parent" ref="759087764"/>
|
||||
<string key="objectName">1</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">33</int>
|
||||
<reference key="object" ref="175014683"/>
|
||||
<reference key="parent" ref="759087764"/>
|
||||
<string key="objectName">8</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">40</int>
|
||||
<reference key="object" ref="323385706"/>
|
||||
|
|
@ -1287,8 +1301,9 @@
|
|||
<reference key="object" ref="1009068048"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="673568144"/>
|
||||
<reference ref="1017044170"/>
|
||||
<reference ref="673568144"/>
|
||||
<reference ref="358633022"/>
|
||||
</object>
|
||||
<reference key="parent" ref="858247959"/>
|
||||
<string key="objectName">video</string>
|
||||
|
|
@ -1296,6 +1311,9 @@
|
|||
<object class="IBObjectRecord">
|
||||
<int key="objectID">127</int>
|
||||
<reference key="object" ref="673568144"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<reference key="parent" ref="1009068048"/>
|
||||
<string key="objectName">preview</string>
|
||||
</object>
|
||||
|
|
@ -1305,6 +1323,18 @@
|
|||
<reference key="parent" ref="1009068048"/>
|
||||
<string key="objectName">display</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">137</int>
|
||||
<reference key="object" ref="358633022"/>
|
||||
<reference key="parent" ref="1009068048"/>
|
||||
<string key="objectName">videocallquality</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">33</int>
|
||||
<reference key="object" ref="175014683"/>
|
||||
<reference key="parent" ref="759087764"/>
|
||||
<string key="objectName">8</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
|
|
@ -1332,6 +1362,7 @@
|
|||
<string>13.IBPluginDependency</string>
|
||||
<string>13.IBUIButtonInspectorSelectedStateConfigurationMetadataKey</string>
|
||||
<string>132.IBPluginDependency</string>
|
||||
<string>137.IBPluginDependency</string>
|
||||
<string>15.IBPluginDependency</string>
|
||||
<string>16.CustomClassName</string>
|
||||
<string>16.IBPluginDependency</string>
|
||||
|
|
@ -1394,6 +1425,7 @@
|
|||
<real value="1"/>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>UIMuteButton</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<real value="2"/>
|
||||
|
|
@ -1444,7 +1476,7 @@
|
|||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">136</int>
|
||||
<int key="maxID">138</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
|
|
@ -1493,6 +1525,7 @@
|
|||
<string>star</string>
|
||||
<string>three</string>
|
||||
<string>two</string>
|
||||
<string>videoCallQuality</string>
|
||||
<string>videoGroup</string>
|
||||
<string>videoPreview</string>
|
||||
<string>videoView</string>
|
||||
|
|
@ -1527,6 +1560,7 @@
|
|||
<string>UIButton</string>
|
||||
<string>UIButton</string>
|
||||
<string>UIButton</string>
|
||||
<string>UIImageView</string>
|
||||
<string>UIView</string>
|
||||
<string>UIView</string>
|
||||
<string>UIView</string>
|
||||
|
|
@ -1564,6 +1598,7 @@
|
|||
<string>star</string>
|
||||
<string>three</string>
|
||||
<string>two</string>
|
||||
<string>videoCallQuality</string>
|
||||
<string>videoGroup</string>
|
||||
<string>videoPreview</string>
|
||||
<string>videoView</string>
|
||||
|
|
@ -1676,6 +1711,10 @@
|
|||
<string key="name">two</string>
|
||||
<string key="candidateClassName">UIButton</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">videoCallQuality</string>
|
||||
<string key="candidateClassName">UIImageView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">videoGroup</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@
|
|||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrameSize">{320, 460}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MCAwIDAAA</bytes>
|
||||
|
|
@ -129,7 +128,6 @@
|
|||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{211, 418}, {108, 62}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
|
|
@ -252,7 +250,6 @@
|
|||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{420, 212}, {60, 108}}</string>
|
||||
<reference key="NSSuperview" ref="977413659"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
|
|
@ -314,6 +311,19 @@
|
|||
<object class="IBUIView" id="774090532">
|
||||
<reference key="NSNextResponder" ref="738244138"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIImageView" id="359167072">
|
||||
<reference key="NSNextResponder" ref="774090532"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{8, 285}, {28, 28}}</string>
|
||||
<reference key="NSSuperview" ref="774090532"/>
|
||||
<reference key="NSNextKeyView" ref="81113981"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:567</string>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{60, 0}, {420, 320}}</string>
|
||||
<reference key="NSSuperview" ref="738244138"/>
|
||||
<reference key="NSNextKeyView" ref="359167072"/>
|
||||
|
|
@ -392,7 +402,6 @@
|
|||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrame">{{360, 233}, {106, 80}}</string>
|
||||
<reference key="NSSuperview" ref="738244138"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
|
|
@ -400,16 +409,6 @@
|
|||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="359167072">
|
||||
<reference key="NSNextResponder" ref="738244138"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{68, 285}, {28, 28}}</string>
|
||||
<reference key="NSSuperview" ref="738244138"/>
|
||||
<reference key="NSNextKeyView" ref="81113981"/>
|
||||
<string key="NSReuseIdentifierKey">_NS:567</string>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{480, 320}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
|
|
@ -731,7 +730,6 @@
|
|||
<reference ref="898336236"/>
|
||||
<reference ref="93544236"/>
|
||||
<reference ref="689882425"/>
|
||||
<reference ref="359167072"/>
|
||||
<reference ref="774090532"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
|
|
@ -780,17 +778,21 @@
|
|||
<reference key="parent" ref="977413659"/>
|
||||
<string key="objectName">display</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">59</int>
|
||||
<reference key="object" ref="359167072"/>
|
||||
<reference key="parent" ref="738244138"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">39</int>
|
||||
<reference key="object" ref="774090532"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="359167072"/>
|
||||
</object>
|
||||
<reference key="parent" ref="738244138"/>
|
||||
<string key="objectName">display</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">59</int>
|
||||
<reference key="object" ref="359167072"/>
|
||||
<reference key="parent" ref="774090532"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
|
|
|
|||
|
|
@ -45,4 +45,5 @@ capture=1
|
|||
show_local=0
|
||||
enabled=1
|
||||
size=qvga
|
||||
display_filter_auto_rotate=1
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 86cb50783bf6923fc812219066d4aefd656ee80a
|
||||
Subproject commit 933c931a0cd928e74bece7807099f38583d42a3c
|
||||
Loading…
Add table
Reference in a new issue