forked from mirrors/linphone-iphone
enable preview
This commit is contained in:
parent
62513f12c8
commit
6c7e64958a
4 changed files with 21 additions and 3 deletions
|
|
@ -21,12 +21,14 @@
|
|||
|
||||
@interface VideoViewController : UIViewController {
|
||||
UIImageView* mDisplay;
|
||||
UIView* mPreview;
|
||||
UIMuteButton* mMute;
|
||||
UIHangUpButton* mHangUp;
|
||||
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) IBOutlet UIImageView* mDisplay;
|
||||
@property (nonatomic, retain) IBOutlet UIView* mPreview;
|
||||
@property (nonatomic, retain) IBOutlet UIMuteButton* mMute;
|
||||
@property (nonatomic, retain) IBOutlet UIHangUpButton* mHangUp;
|
||||
@end
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
@implementation VideoViewController
|
||||
@synthesize mDisplay;
|
||||
@synthesize mPreview;
|
||||
@synthesize mMute;
|
||||
@synthesize mHangUp;
|
||||
|
||||
|
|
@ -64,6 +65,7 @@
|
|||
-(void) viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
linphone_core_set_native_video_window_id([LinphoneManager getLc],(unsigned long)mDisplay);
|
||||
linphone_core_set_native_preview_window_id([LinphoneManager getLc],(unsigned long)mPreview);
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@
|
|||
<string key="NSFrame">{{240, 408}, {72, 37}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
|
|
@ -174,6 +173,14 @@
|
|||
</object>
|
||||
<int key="connectionID">10</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">mPreview</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="955352536"/>
|
||||
</object>
|
||||
<int key="connectionID">11</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
|
|
@ -280,7 +287,7 @@
|
|||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">10</int>
|
||||
<int key="maxID">11</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
|
|
@ -319,12 +326,14 @@
|
|||
<string>mDisplay</string>
|
||||
<string>mHangUp</string>
|
||||
<string>mMute</string>
|
||||
<string>mPreview</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>UIImageView</string>
|
||||
<string>UIHangUpButton</string>
|
||||
<string>UIMuteButton</string>
|
||||
<string>UIView</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
|
|
@ -334,6 +343,7 @@
|
|||
<string>mDisplay</string>
|
||||
<string>mHangUp</string>
|
||||
<string>mMute</string>
|
||||
<string>mPreview</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
|
|
@ -349,6 +359,10 @@
|
|||
<string key="name">mMute</string>
|
||||
<string key="candidateClassName">UIMuteButton</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">mPreview</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit c22169c221f91dcf38347410deff544f2786185f
|
||||
Subproject commit 8dde32f19c1421443f8a6e42ab1efdfb00d97246
|
||||
Loading…
Add table
Reference in a new issue