Skip to content

React Native (react-native-video) #2

Description

@AliMousaDev

its not working good on react native video (Slow) and some time its not even working

<Video
ref={player.mainVideoRef}
source={{
uri: "https://myapi/meg/ElxbWUsCGhEjBA0LF1ceEV5bVlhbU1sDGSEcQQJASUJCGldcXi9VPBsSAlYcNB5BXwJDBQsGQwgER0pmBgcHT0pATRxSWltY",
headers: { referer: 'https://myapi' },
// type: player.videoSource.includes('m3u8') ? 'm3u8' : undefined,
}}
style={StyleSheet.absoluteFill}
resizeMode={resizeMode}
allowsExternalPlayback={true}
paused={player.paused || isLoading}
muted={player.muted || isLoading}
rate={player.rate}
volume={player.volume}
onLoad={player.onLoad}
onReadyForDisplay={player.onReadyForDisplay}
onProgress={player.onProgress}
onBuffer={player.onBuffer}
onError={player.onError}
repeat={false}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions