diff --git a/react/features/recording/components/LiveStream/constants.js b/react/features/recording/components/LiveStream/constants.js index fec5b3d47..599840cff 100644 --- a/react/features/recording/components/LiveStream/constants.js +++ b/react/features/recording/components/LiveStream/constants.js @@ -2,5 +2,4 @@ * The URL that is the main landing page for YouTube live streaming and should * have a user's live stream key. */ -export const YOUTUBE_LIVE_DASHBOARD_URL - = 'https://www.youtube.com/live_dashboard'; +export const YOUTUBE_LIVE_DASHBOARD_URL = 'https://www.youtube.com/live_dashboard'; diff --git a/react/features/recording/components/LiveStream/native/StreamKeyForm.js b/react/features/recording/components/LiveStream/native/StreamKeyForm.js index bd2ab45e7..e1428a7eb 100644 --- a/react/features/recording/components/LiveStream/native/StreamKeyForm.js +++ b/react/features/recording/components/LiveStream/native/StreamKeyForm.js @@ -1,12 +1,13 @@ // @flow import React from 'react'; -import { Linking, Text, TextInput, TouchableOpacity, View } from 'react-native'; +import { Text, TextInput, TouchableOpacity, View } from 'react-native'; import { _abstractMapStateToProps } from '../../../../base/dialog'; import { translate } from '../../../../base/i18n'; import { connect } from '../../../../base/redux'; import { StyleType } from '../../../../base/styles'; +import { openURLInBrowser } from '../../../../base/util'; import AbstractStreamKeyForm, { type Props as AbstractProps @@ -120,7 +121,7 @@ class StreamKeyForm extends AbstractStreamKeyForm { const { helpURL } = this; if (typeof helpURL === 'string') { - Linking.openURL(helpURL); + openURLInBrowser(helpURL); } } } diff --git a/react/features/recording/components/LiveStream/native/StreamKeyPicker.js b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js index d3eeccf13..73814b02f 100644 --- a/react/features/recording/components/LiveStream/native/StreamKeyPicker.js +++ b/react/features/recording/components/LiveStream/native/StreamKeyPicker.js @@ -2,7 +2,6 @@ import React, { Component } from 'react'; import { - Linking, Text, TouchableHighlight, TouchableOpacity, @@ -13,6 +12,7 @@ import { _abstractMapStateToProps } from '../../../../base/dialog'; import { translate } from '../../../../base/i18n'; import { connect } from '../../../../base/redux'; import { StyleType } from '../../../../base/styles'; +import { openURLInBrowser } from '../../../../base/util'; import { YOUTUBE_LIVE_DASHBOARD_URL } from '../constants'; @@ -153,7 +153,7 @@ class StreamKeyPicker extends Component { * @returns {void} */ _onOpenYoutubeDashboard() { - Linking.openURL(YOUTUBE_LIVE_DASHBOARD_URL); + openURLInBrowser(YOUTUBE_LIVE_DASHBOARD_URL); } _onStreamPick: string => Function