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

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

Loading…
Cancel
Save