STSSDKPlayerControlView
@interface STSSDKPlayerControlView : UIView
An instance of STSSDKPlayerControlView is a means for displaying playback controls (e.g. play button, pause button) and info (e.g. title label, text track(subtitle) label).
-
The container view is the default superview of the content displayed by the player control view.
Declaration
Objective-C
@property (nonatomic, readonly) UIImageView *_Nonnull containerView;
-
The label that shows the title of the current playing video.
Declaration
Objective-C
@property (nonatomic, readonly) UILabel *_Nonnull titleLabel;
-
The label that shows the views count of the current playing video.
Declaration
Objective-C
@property (nonatomic, readonly) UILabel *_Nonnull viewsCountLabel;
-
The play button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull playButton;
-
The pause button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull pauseButton;
-
The replay button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull replayButton;
-
The quality selection button. User can press this button to show a quality selection menu.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull qualityButton;
-
The previous button, only shows when player is playing a playlist.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull prevButton;
-
The next button, only shows when player is playing a playlist.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull nextButton;
-
The mute switch button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull muteSwitchButton;
-
The text track switch button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull textTrackSwitchButton;
-
The playback speed button.
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *_Nonnull playbackSpeedButton;
-
The view that shows the playback time and duration.
Declaration
Objective-C
@property (nonatomic, readonly) STSSDKStreamingTimelineView *_Nonnull playbackTimelineView;
-
The view that indicates the currently playing item is a live.
Declaration
Objective-C
@property (nonatomic, readonly) UIView *_Nonnull liveMark;
-
The view that indicates the currently playing item is a 360 video/live.
Declaration
Objective-C
@property (nonatomic, readonly) UIImageView *_Nonnull sphericalMark;
-
The layout constraints of the subviews embedded in the containerView. Change this property to customize the layout of the playback controls and infos.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) NSArray<NSLayoutConstraint *> *_Nonnull subviewLayoutConstraints;
-
The time interval (in seconds) to auto dismiss
containerView
after showing it. Defaults to three. Set this property to zero if you don’t wantcontainerView
to be auto dismissed.contrainerView
will be auto dismissed after given time interval only when the player is playing. Note: If you update this property whencontainerView
is visible, the new value will work the next time thatcontainerView
becomes visible.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) NSUInteger containerViewDismissTimeInterval;
-
A boolean value indicates whether the player control view is able to display the titleLabel.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowTitleLabel;
-
A boolean value indicates whether the player control view is able to display the
viewsCountLabel
. Defaults to YES. This property works only when the player is playing a video/playlist. TheviewsCountLabel
is always hidden when player is playing a live.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowViewsCountLabel;
-
A boolean value indicates whether the player control view is able to display the playback controls.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowPlaybackControlButtons;
-
A boolean value indicates whether the player control view is able to display the qualityButton.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowQualityButton;
-
A boolean value indicates whether the player control view is able to display the playbackTimelineView. This property works only when the player is playing a video/playlist. The playbackTimelineView is always hidden when player is playing a live.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowPlaybackTimelineView;
-
A boolean value indicates whether the player control view is able to display the liveMark. This property works only when the player is playing a live. The liveMark is always hidden when player is playing a video or a playlist.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowLiveMark;
-
A boolean value indicates whether the player control view is able to display the sphericalMark. This property works only when the player is playing a 360 video/live.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowSphericalMark;
-
A boolean value indicates whether the player control view is able to display the muteSwitchButton.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowMuteSwitchButton;
-
A boolean value indicates whether the player control view is able to display the textTrackSwitchButton.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowTextTrackSwitchButton;
-
A boolean value indicates whether the player control view is able to display the playbackSpeedButton. This property works only when the player is playing video/playlist. The playbackSpeedButton is always hidden when player is playing live.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL canShowPlaybackSpeedButton;