Skip to content

Commit 1981d06

Browse files
committed
CHG: set mini width for AGEVideoContainer
1 parent 6d027f7 commit 1981d06

16 files changed

Lines changed: 676 additions & 286 deletions

File tree

macOS/APIExample/Base.lproj/Main.storyboard

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
<scene sceneID="R2V-B0-nI4">
686686
<objects>
687687
<windowController id="B8D-0N-5wS" sceneMemberID="viewController">
688-
<window key="window" title="Agora API Example" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
688+
<window key="window" title="Agora API Example" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" toolbarStyle="expanded" id="IQv-IB-iLA">
689689
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
690690
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
691691
<rect key="contentRect" x="196" y="240" width="800" height="600"/>
@@ -708,12 +708,12 @@
708708
<objects>
709709
<splitViewController id="sL9-0i-oWK" sceneMemberID="viewController">
710710
<splitViewItems>
711-
<splitViewItem id="63c-uO-XIT"/>
712-
<splitViewItem id="Lq1-uY-z7v"/>
711+
<splitViewItem holdingPriority="255" behavior="contentList" separatorStyle="none" id="63c-uO-XIT"/>
712+
<splitViewItem canCollapse="YES" separatorStyle="none" id="Lq1-uY-z7v"/>
713713
</splitViewItems>
714-
<splitView key="splitView" dividerStyle="thin" vertical="YES" id="1JX-5Q-i5O">
714+
<splitView key="splitView" arrangesAllSubviews="NO" dividerStyle="thin" vertical="YES" id="1JX-5Q-i5O">
715715
<rect key="frame" x="0.0" y="0.0" width="800" height="600"/>
716-
<autoresizingMask key="autoresizingMask"/>
716+
<autoresizingMask key="autoresizingMask" heightSizable="YES"/>
717717
<connections>
718718
<outlet property="delegate" destination="sL9-0i-oWK" id="Z37-lV-mn6"/>
719719
</connections>
@@ -766,16 +766,23 @@
766766
<rect key="frame" x="1" y="1" width="246" height="17"/>
767767
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
768768
<subviews>
769-
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Yoo-BB-x79">
769+
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Yoo-BB-x79">
770770
<rect key="frame" x="20" y="0.0" width="246" height="17"/>
771-
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
771+
<constraints>
772+
<constraint firstAttribute="height" constant="17" id="mQT-GL-T2e"/>
773+
</constraints>
772774
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="qG2-7c-SRN">
773775
<font key="font" metaFont="system"/>
774776
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
775777
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
776778
</textFieldCell>
777779
</textField>
778780
</subviews>
781+
<constraints>
782+
<constraint firstItem="Yoo-BB-x79" firstAttribute="leading" secondItem="2hx-oV-azK" secondAttribute="leading" constant="22" id="HWS-Cq-T0H"/>
783+
<constraint firstAttribute="trailing" secondItem="Yoo-BB-x79" secondAttribute="trailing" constant="-18" id="MIA-Un-2ml"/>
784+
<constraint firstItem="Yoo-BB-x79" firstAttribute="centerY" secondItem="2hx-oV-azK" secondAttribute="centerY" id="w24-aV-GTb"/>
785+
</constraints>
779786
<connections>
780787
<outlet property="textField" destination="Yoo-BB-x79" id="VOp-vS-5SV"/>
781788
</connections>
@@ -784,16 +791,23 @@
784791
<rect key="frame" x="1" y="20" width="246" height="17"/>
785792
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
786793
<subviews>
787-
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QTx-vV-DAq">
794+
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="QTx-vV-DAq">
788795
<rect key="frame" x="20" y="0.0" width="246" height="14"/>
789-
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
796+
<constraints>
797+
<constraint firstAttribute="height" constant="14" id="tIf-oG-A6G"/>
798+
</constraints>
790799
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Nlt-pS-UAz">
791800
<font key="font" metaFont="systemBold" size="10"/>
792801
<color key="textColor" name="windowFrameTextColor" catalog="System" colorSpace="catalog"/>
793802
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
794803
</textFieldCell>
795804
</textField>
796805
</subviews>
806+
<constraints>
807+
<constraint firstItem="QTx-vV-DAq" firstAttribute="leading" secondItem="uWY-5d-ieJ" secondAttribute="leading" constant="22" id="4bc-EZ-xcB"/>
808+
<constraint firstAttribute="trailing" secondItem="QTx-vV-DAq" secondAttribute="trailing" constant="-18" id="G7X-dG-F0f"/>
809+
<constraint firstItem="QTx-vV-DAq" firstAttribute="top" secondItem="uWY-5d-ieJ" secondAttribute="top" constant="3" id="Ltm-P5-nao"/>
810+
</constraints>
797811
<connections>
798812
<outlet property="textField" destination="QTx-vV-DAq" id="XPu-Pj-H4e"/>
799813
</connections>
@@ -818,10 +832,13 @@
818832
<autoresizingMask key="autoresizingMask"/>
819833
</scroller>
820834
</scrollView>
821-
<button id="1eW-RY-z9X">
835+
<button translatesAutoresizingMaskIntoConstraints="NO" id="1eW-RY-z9X">
822836
<rect key="frame" x="0.0" y="0.0" width="32" height="32"/>
823-
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
824-
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" inset="2" id="PTe-Da-jjD">
837+
<constraints>
838+
<constraint firstAttribute="height" constant="32" id="8Dp-kj-zaV"/>
839+
<constraint firstAttribute="width" constant="32" id="yN4-V5-R92"/>
840+
</constraints>
841+
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="NSSmartBadgeTemplate" imagePosition="only" alignment="center" inset="2" id="PTe-Da-jjD">
825842
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
826843
<font key="font" metaFont="system"/>
827844
</buttonCell>
@@ -830,6 +847,10 @@
830847
</connections>
831848
</button>
832849
</subviews>
850+
<constraints>
851+
<constraint firstItem="1eW-RY-z9X" firstAttribute="leading" secondItem="bDS-2Z-AsB" secondAttribute="leading" id="Fd3-a2-JD3"/>
852+
<constraint firstAttribute="bottom" secondItem="1eW-RY-z9X" secondAttribute="bottom" id="OWg-RV-3rO"/>
853+
</constraints>
833854
</view>
834855
<connections>
835856
<outlet property="tableView" destination="arv-VN-9VJ" id="ixD-0e-74k"/>

macOS/APIExample/Examples/Advanced/AudioMixing/Base.lproj/AudioMixing.storyboard

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
<rect key="frame" x="0.0" y="0.0" width="814" height="600"/>
1515
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1616
<subviews>
17-
<customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tII-oj-Rae" customClass="AGEVideoContainer" customModule="AGEVideoLayout">
17+
<customView translatesAutoresizingMaskIntoConstraints="NO" id="tII-oj-Rae" customClass="AGEVideoContainer" customModule="AGEVideoLayout">
1818
<rect key="frame" x="0.0" y="0.0" width="500" height="607"/>
19-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<constraints>
20+
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="320" id="uIe-eO-gHH"/>
21+
</constraints>
2022
</customView>
21-
<box horizontalHuggingPriority="750" fixedFrame="YES" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="Uaa-hw-RVL">
23+
<box horizontalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="Uaa-hw-RVL">
2224
<rect key="frame" x="497" y="0.0" width="5" height="600"/>
23-
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" heightSizable="YES"/>
2425
</box>
2526
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="2" horizontalPageScroll="2" verticalLineScroll="2" verticalPageScroll="2" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" verticalScrollElasticity="none" id="ETL-Zq-KEL">
2627
<rect key="frame" x="500" y="102" width="314" height="498"/>
@@ -30,7 +31,7 @@
3031
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
3132
<subviews>
3233
<view id="RMm-fz-win">
33-
<rect key="frame" x="1" y="-37" width="300" height="700"/>
34+
<rect key="frame" x="0.0" y="-37" width="300" height="700"/>
3435
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
3536
<subviews>
3637
<view id="BIY-gA-MEX" customClass="Picker" customModule="APIExample" customModuleProvider="target">
@@ -263,14 +264,13 @@
263264
<rect key="frame" x="-100" y="-100" width="299" height="15"/>
264265
<autoresizingMask key="autoresizingMask"/>
265266
</scroller>
266-
<scroller key="verticalScroller" autoresizesSubviews="NO" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="0.8910891089108911" horizontal="NO" id="ocJ-NX-y9k">
267+
<scroller key="verticalScroller" autoresizesSubviews="NO" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="ocJ-NX-y9k">
267268
<rect key="frame" x="299" y="0.0" width="15" height="498"/>
268269
<autoresizingMask key="autoresizingMask" flexibleMinX="YES"/>
269270
</scroller>
270271
</scrollView>
271-
<box fixedFrame="YES" boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="PxV-Ne-Xed">
272+
<box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="PxV-Ne-Xed">
272273
<rect key="frame" x="500" y="0.0" width="314" height="103"/>
273-
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
274274
<view key="contentView" id="Y7e-gi-twa">
275275
<rect key="frame" x="0.0" y="0.0" width="314" height="103"/>
276276
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -279,9 +279,8 @@
279279
<rect key="frame" x="28" y="43" width="260" height="50"/>
280280
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
281281
</view>
282-
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="eQc-Hr-rTW">
282+
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="eQc-Hr-rTW">
283283
<rect key="frame" x="24" y="7" width="268" height="32"/>
284-
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
285284
<buttonCell key="cell" type="push" title="Join" bezelStyle="rounded" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="tOH-0i-cWb">
286285
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
287286
<font key="font" metaFont="system"/>
@@ -291,10 +290,30 @@
291290
</connections>
292291
</button>
293292
</subviews>
293+
<constraints>
294+
<constraint firstItem="eQc-Hr-rTW" firstAttribute="leading" secondItem="Y7e-gi-twa" secondAttribute="leading" constant="31" id="6OV-hH-07W"/>
295+
<constraint firstItem="eQc-Hr-rTW" firstAttribute="centerX" secondItem="wwd-Qq-52j" secondAttribute="centerX" id="nA2-ZV-2kz"/>
296+
<constraint firstItem="eQc-Hr-rTW" firstAttribute="top" secondItem="wwd-Qq-52j" secondAttribute="bottom" constant="9" id="w2I-5v-TBn"/>
297+
</constraints>
294298
</view>
299+
<constraints>
300+
<constraint firstAttribute="height" constant="103" id="M2s-xl-J5V"/>
301+
</constraints>
295302
<color key="fillColor" name="windowBackgroundColor" catalog="System" colorSpace="catalog"/>
296303
</box>
297304
</subviews>
305+
<constraints>
306+
<constraint firstItem="ETL-Zq-KEL" firstAttribute="leading" secondItem="tII-oj-Rae" secondAttribute="trailing" id="3Bc-oO-MCN"/>
307+
<constraint firstAttribute="bottom" secondItem="tII-oj-Rae" secondAttribute="bottom" id="7oZ-7Z-Qb3"/>
308+
<constraint firstItem="tII-oj-Rae" firstAttribute="bottom" secondItem="PxV-Ne-Xed" secondAttribute="bottom" id="9vQ-fs-mdK"/>
309+
<constraint firstItem="tII-oj-Rae" firstAttribute="top" secondItem="Tct-wa-cbu" secondAttribute="top" constant="-7" id="U2D-h5-XFh"/>
310+
<constraint firstItem="tII-oj-Rae" firstAttribute="bottom" secondItem="Uaa-hw-RVL" secondAttribute="bottom" id="aTT-6R-8oV"/>
311+
<constraint firstItem="PxV-Ne-Xed" firstAttribute="leading" secondItem="ETL-Zq-KEL" secondAttribute="leading" id="fWW-8v-6vz"/>
312+
<constraint firstItem="tII-oj-Rae" firstAttribute="trailing" secondItem="Uaa-hw-RVL" secondAttribute="trailing" id="oXd-lU-bVY"/>
313+
<constraint firstItem="tII-oj-Rae" firstAttribute="leading" secondItem="Tct-wa-cbu" secondAttribute="leading" id="qSL-dZ-gDF"/>
314+
<constraint firstItem="PxV-Ne-Xed" firstAttribute="trailing" secondItem="ETL-Zq-KEL" secondAttribute="trailing" id="sHa-AI-Xmg"/>
315+
<constraint firstItem="Uaa-hw-RVL" firstAttribute="top" secondItem="ETL-Zq-KEL" secondAttribute="top" id="yhx-is-tDt"/>
316+
</constraints>
298317
</view>
299318
<connections>
300319
<outlet property="additionalEffectVolumeSlider" destination="b1q-NP-j6p" id="M5z-zA-aV6"/>

0 commit comments

Comments
 (0)