Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
remove closed captions code from tvOS builds (picker unavailable + CC…
Browse files Browse the repository at this point in the history
… should be native)
  • Loading branch information
spinosa committed Jun 24, 2016
1 parent 445f357 commit ef9bd95
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ extension WistiaPlayerViewController: WistiaPlayerDelegate {
extension WistiaPlayerViewController: WistiaCaptionsRendererDelegate {

public func captionsRenderer(renderer: WistiaCaptionsRenderer, didUpdateCaptionsLanguagesAvailable captionsLanguagesAvailable: [String]) {
//UIPicker not supported on TV. Captions should be done natively, anyway.
#if os(iOS)
captionsLanguagePickerView.reloadAllComponents()
#endif //os(iOS)
}

}
Expand Down Expand Up @@ -588,6 +591,8 @@ internal extension WistiaPlayerViewController {
#endif //os(iOS)
}

//UIPicker not supported on TV. Captions should be done natively, anyway.
#if os(iOS)
//MARK: - Captions Chooser
extension WistiaPlayerViewController : UIPickerViewDelegate, UIPickerViewDataSource {

Expand Down Expand Up @@ -650,4 +655,5 @@ extension WistiaPlayerViewController : UIPickerViewDelegate, UIPickerViewDataSou
}


}
}
#endif //os(iOS)

0 comments on commit ef9bd95

Please sign in to comment.