fix(#2542): added airplay

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Rakov Roman 3 years ago
parent 62e35bad8c
commit d819b7e9fe
  1. 6
      src/features/StreamPlayer/components/Controls/Components/ControlsMobile/index.tsx
  2. 1
      src/features/VideoPlayer/index.tsx

@ -1,6 +1,6 @@
import { T9n } from 'features/T9n' import { T9n } from 'features/T9n'
import { Settings } from 'features/MultiSourcePlayer/components/Settings' import { Settings } from 'features/MultiSourcePlayer/components/Settings'
// import { AirPlay } from 'features/AirPlay' import { AirPlay } from 'features/AirPlay'
import { ChromeCast } from 'features/ChromeCast' import { ChromeCast } from 'features/ChromeCast'
import { ControlsPropsExtended } from '../..' import { ControlsPropsExtended } from '../..'
@ -28,7 +28,7 @@ export const ControlsMobile = (controlsProps: {props: ControlsPropsExtended}) =>
selectedQuality, selectedQuality,
src, src,
videoQualities, videoQualities,
// videoRef, videoRef,
} = props } = props
return ( return (
@ -46,7 +46,7 @@ export const ControlsMobile = (controlsProps: {props: ControlsPropsExtended}) =>
<T9n t='live' /> <T9n t='live' />
</LiveBtn> </LiveBtn>
)} )}
{/* <AirPlay videoRef={videoRef} /> */} <AirPlay videoRef={videoRef} />
<ChromeCast src={src} /> <ChromeCast src={src} />
<Settings <Settings
onSelect={onQualitySelect} onSelect={onQualitySelect}

@ -40,6 +40,7 @@ export const VideoPlayer = forwardRef<HTMLVideoElement, Props>((props: Props, re
} = useVideoPlayer({ ...props, ref }) } = useVideoPlayer({ ...props, ref })
return ( return (
<Video <Video
autoPlay
playsInline playsInline
className={className} className={className}
width={width} width={width}

Loading…
Cancel
Save