diff --git a/docs/pages/component/props.mdx b/docs/pages/component/props.mdx index 2a7c145890..d132941e9c 100644 --- a/docs/pages/component/props.mdx +++ b/docs/pages/component/props.mdx @@ -792,17 +792,6 @@ source={{ } }} ``` -#### viewType - - - -Allow to explicitly specify view type. -This flag replace `useSecureView` and `useTextureView` fields. -There are 3 available values: -- 'textureView': The video is rendered in a texture view. it allows mapping the view on a texture (useful for 3D). -DRM playback is not supported on textureView, if drm prop is provided, the suface will be transformed to a SurfaceView. -- 'surfaceView' (default): The video is rendered in a surface. take less resources to be rendered. -- 'secureView': The video is rendered in a surface which disallow taking screenshot of the video #### `textTracksAllowChunklessPreparation` diff --git a/src/Video.tsx b/src/Video.tsx index b25c8dc8d1..2de6dcda2b 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -193,7 +193,7 @@ const Video = forwardRef( textTracksAllowChunklessPreparation: resolvedSource.textTracksAllowChunklessPreparation, }; - }, [drm, source, useSecureView, useTextureView]); + }, [drm, source]); const _selectedTextTrack = useMemo(() => { if (!selectedTextTrack) { diff --git a/src/specs/VideoNativeComponent.ts b/src/specs/VideoNativeComponent.ts index fd3c4ddd84..9aa561c9a7 100644 --- a/src/specs/VideoNativeComponent.ts +++ b/src/specs/VideoNativeComponent.ts @@ -39,7 +39,6 @@ export type VideoSrc = Readonly<{ cropStart?: Float; cropEnd?: Float; metadata?: VideoMetadata; - viewType?: Int32; // Android drm?: Drm; textTracksAllowChunklessPreparation?: boolean; // android }>; diff --git a/src/types/video.ts b/src/types/video.ts index 8f98f663c6..15f4423e3f 100644 --- a/src/types/video.ts +++ b/src/types/video.ts @@ -25,7 +25,6 @@ export type ReactVideoSourceProperties = { cropEnd?: number; metadata?: VideoMetadata; drm?: Drm; - viewType?: ViewType; // Android textTracksAllowChunklessPreparation?: boolean; };