react-native-video-player icon indicating copy to clipboard operation
react-native-video-player copied to clipboard

Add possibility to render an overlay component on video

Open mlazari opened this issue 4 years ago • 0 comments

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

Example:

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

video-player

mlazari avatar Dec 18 '20 15:12 mlazari