Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Jun 27, 2024
1 parent f352a59 commit f9fa8fd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions docs/pages/component/props.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -792,17 +792,6 @@ source={{
}
}}
```
#### viewType

<PlatformsList types={['Android']} />

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`
<PlatformsList types={['Android']} />
Expand Down
2 changes: 1 addition & 1 deletion src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
textTracksAllowChunklessPreparation:
resolvedSource.textTracksAllowChunklessPreparation,
};
}, [drm, source, useSecureView, useTextureView]);
}, [drm, source]);

const _selectedTextTrack = useMemo(() => {
if (!selectedTextTrack) {
Expand Down
1 change: 0 additions & 1 deletion src/specs/VideoNativeComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export type VideoSrc = Readonly<{
cropStart?: Float;
cropEnd?: Float;
metadata?: VideoMetadata;
viewType?: Int32; // Android
drm?: Drm;
textTracksAllowChunklessPreparation?: boolean; // android
}>;
Expand Down
1 change: 0 additions & 1 deletion src/types/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type ReactVideoSourceProperties = {
cropEnd?: number;
metadata?: VideoMetadata;
drm?: Drm;
viewType?: ViewType; // Android
textTracksAllowChunklessPreparation?: boolean;
};

Expand Down

0 comments on commit f9fa8fd

Please sign in to comment.