Skip to content

feat: add possibility to render an overlay component on video#238

Open
mlazari wants to merge 1 commit intoTheWidlarzGroup:masterfrom
wbetterdev:add-overlay-component-2
Open

feat: add possibility to render an overlay component on video#238
mlazari wants to merge 1 commit intoTheWidlarzGroup:masterfrom
wbetterdev:add-overlay-component-2

Conversation

@mlazari
Copy link
Copy Markdown

@mlazari mlazari commented Jun 18, 2025

Summary

This change adds a new renderOverlayComponent prop that allows to render something on top of the video, but under controls / play button.

Example:

        <VideoPlayer
          source={{uri}}
          videoWidth={320}
          videoHeight={240}
          renderOverlayComponent={() => (
            <Text
              style={{
                color: 'white',
                position: 'absolute',
                right: 20,
                bottom: 20,
              }}>
              Testing
            </Text>
          )}
        />

video-player

This change adds a new `renderOverlayComponent` prop that allows to render something on top of the
video, but under controls / play button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant