fix(ott-2702): del warning text for ios

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Сергей Шитиков 3 years ago
parent 7387a78ef0
commit aea40f00d3
  1. 33658
      package-lock.json
  2. 22
      src/features/StreamPlayer/index.tsx

33658
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
import { isIOS, isMobileDevice } from 'config/userAgent'
import { isMobileDevice } from 'config/userAgent'
import { Loader } from 'features/Loader'
import { VideoPlayer } from 'features/VideoPlayer'
@ -16,8 +16,6 @@ import {
Forward,
ControlsGradient,
TeamsDetailsWrapper,
WarningIosText,
WarningIosWrapper,
} from './styled'
import type { Props } from './hooks'
import { useVideoPlayer } from './hooks'
@ -76,7 +74,6 @@ export const StreamPlayer = (props: Props) => {
videoRef,
volume,
volumeInPercent,
warningText,
wrapperRef,
} = useVideoPlayer(props)
return (
@ -93,19 +90,10 @@ export const StreamPlayer = (props: Props) => {
<LoaderWrapper buffering={buffering}>
<Loader color='#515151' />
</LoaderWrapper>
{isIOS
? (
<WarningIosWrapper>
<WarningIosText>
{warningText}
</WarningIosText>
</WarningIosWrapper>
)
: (
<LoaderWrapper buffering={buffering}>
<Loader color='#515151' />
</LoaderWrapper>
)}
<LoaderWrapper buffering={buffering}>
<Loader color='#515151' />
</LoaderWrapper>
<VideoPlayer
width='100%'
height='100%'

Loading…
Cancel
Save