File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
source/views/streaming/radio Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ import type {TopLevelViewPropsType} from '../../types'
1919import { StreamPlayer } from './player'
2020import type { PlayState , HtmlAudioError , Viewport } from './types'
2121import { ActionButton , ShowCalendarButton , CallButton } from './buttons'
22+ import { openUrl } from '../../components/open-url'
2223
2324const image = require ( '../../../../images/streaming/ksto/ksto-logo.png' )
2425const stationNumber = '+15077863602'
26+ const kstoLiveUrl = 'https://www.stolaf.edu/multimedia/play/embed/ksto.html'
2527
2628type Props = TopLevelViewPropsType
2729
@@ -89,7 +91,21 @@ export class KSTOView extends React.PureComponent<Props, State> {
8991 callPhone ( stationNumber )
9092 }
9193
94+ openStreamWebsite = ( ) => {
95+ openUrl ( kstoLiveUrl )
96+ }
97+
9298 renderPlayButton = ( state : PlayState ) => {
99+ if ( Platform . OS === 'android' ) {
100+ return (
101+ < ActionButton
102+ icon = "ios-planet"
103+ onPress = { this . openStreamWebsite }
104+ text = "Open"
105+ />
106+ )
107+ }
108+
93109 switch ( state ) {
94110 case 'paused' :
95111 return (
You can’t perform that action at this time.
0 commit comments