@@ -63,16 +63,16 @@ class MainViewController: UIViewController {
6363 button. translatesAutoresizingMaskIntoConstraints = false
6464 contentView. addArrangedSubview ( button)
6565 button. addTarget ( self , action: #selector( load) , for: . touchUpInside)
66-
67- let playFromParagraphButton = UIButton ( type: . system)
68- playFromParagraphButton . setTitle ( " Play from paragraph demo" , for: . normal)
69- playFromParagraphButton . setTitleColor ( . black, for: . normal)
70- playFromParagraphButton . layer. cornerRadius = 4
71- playFromParagraphButton . layer. borderWidth = 1
72- playFromParagraphButton . layer. borderColor = UIColor . lightGray. cgColor
73- playFromParagraphButton . translatesAutoresizingMaskIntoConstraints = false
74- contentView. addArrangedSubview ( playFromParagraphButton )
75- playFromParagraphButton . addTarget ( self , action: #selector( goToPlayFromParagraphDemo ) , for: . touchUpInside)
66+
67+ let playbackFromSegmentsButton = UIButton ( type: . system)
68+ playbackFromSegmentsButton . setTitle ( " Playback from segments demo" , for: . normal)
69+ playbackFromSegmentsButton . setTitleColor ( . black, for: . normal)
70+ playbackFromSegmentsButton . layer. cornerRadius = 4
71+ playbackFromSegmentsButton . layer. borderWidth = 1
72+ playbackFromSegmentsButton . layer. borderColor = UIColor . lightGray. cgColor
73+ playbackFromSegmentsButton . translatesAutoresizingMaskIntoConstraints = false
74+ contentView. addArrangedSubview ( playbackFromSegmentsButton )
75+ playbackFromSegmentsButton . addTarget ( self , action: #selector( goToPlaybackFromSegmentsDemo ) , for: . touchUpInside)
7676
7777 let playerViewContainer = UIStackView ( )
7878 playerViewContainer. distribution = . fill
@@ -156,12 +156,12 @@ class MainViewController: UIViewController {
156156 alert. addAction ( UIAlertAction ( title: " Cancel " , style: . cancel, handler: nil ) )
157157 self . present ( alert, animated: true , completion: nil )
158158 }
159-
160- @objc func goToPlayFromParagraphDemo ( ) {
161- let playFromParagraphViewController = PlayFromParagraphViewController ( )
162- playFromParagraphViewController . title = " Play from paragraph "
159+
160+ @objc func goToPlaybackFromSegmentsDemo ( ) {
161+ let playbackFromSegmentsViewController = PlaybackFromSegmentsViewController ( )
162+ playbackFromSegmentsViewController . title = " Playback from segments "
163163 guard let navController = self . navigationController else { return }
164- navController. pushViewController ( playFromParagraphViewController , animated: true )
164+ navController. pushViewController ( playbackFromSegmentsViewController , animated: true )
165165 }
166166
167167 @objc func load( ) {
0 commit comments