Start adding audio player

This commit is contained in:
Benjamin Verdier 2018-07-26 16:15:35 +02:00
parent 5c01e447b8
commit 03ddc73484
3 changed files with 15 additions and 8 deletions

View file

@ -10,6 +10,7 @@
@interface UIRecordingCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIView *playerView;
@property(nonatomic, assign) NSString *recording;

View file

@ -9,9 +9,12 @@
#import "PhoneMainView.h"
#import "UILabel+Boldify.h"
#import "Utils.h"
#import "UILinphoneAudioPlayer.h"
@implementation UIRecordingCell
static UILinphoneAudioPlayer *player;
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString *)identifier {
@ -81,5 +84,9 @@
[self setFrame:frame];
}
- (void)setSelected:(BOOL)selected {
}
@end

View file

@ -13,7 +13,7 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view autoresizesSubviews="NO" clipsSubviews="YES" contentMode="scaleToFill" id="e3d-Tw-Cmt" customClass="UIRecordingCell">
<rect key="frame" x="0.0" y="0.0" width="360" height="40"/>
<rect key="frame" x="0.0" y="0.0" width="360" height="150"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Name" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QmK-ci-4No">
@ -23,13 +23,11 @@
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Player Goes Here" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aJS-nM-YZW">
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Nk9-eo-eCo">
<rect key="frame" x="0.0" y="42" width="360" height="108"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="simulatedStatusBarMetrics"/>
@ -37,8 +35,9 @@
<viewLayoutGuide key="safeArea" id="Ak9-b1-W1C"/>
<connections>
<outlet property="nameLabel" destination="QmK-ci-4No" id="Jvc-Qm-ZZ6"/>
<outlet property="playerView" destination="Nk9-eo-eCo" id="64I-70-nHC"/>
</connections>
<point key="canvasLocation" x="26" y="50"/>
<point key="canvasLocation" x="26" y="105"/>
</view>
</objects>
</document>