Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Vidoe player is not visible inside Modal #4095

Closed
rohanthakran opened this issue Aug 16, 2024 · 3 comments
Closed

[BUG]: Vidoe player is not visible inside Modal #4095

rohanthakran opened this issue Aug 16, 2024 · 3 comments
Labels
bug stale Closed due to inactivity or lack or resources

Comments

@rohanthakran
Copy link

Version

6.4.3

What platforms are you having the problem on?

Android

System Version

node 20.14.0

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I am not able to see video player if I use it inside the model
{/* ======================= Modal Code ================ */}
<Modal
animationType="slide"
transparent={true}
visible={modalVisible}
onRequestClose={() => {
setModalVisible(!modalVisible);
}}>

dskdamdksak ROhn
<View
style={{
flex: 1,
backgroundColor: 'orange',
borderWidth: 1,
borderColor: 'orange',
marginTop: 22,
}}>

              <Video
                preventsDisplaySleepDuringVideoPlayback={false}
                controls={true}
                source={{uri: videoFile}}
                fullscreenAutorotate={true}
                fullscreenOrientation="portrait"
                resizeMode={'contain'}
                muted={false}
                paused={true}
                // fullscreen={true}
                style={{
                  height: responsive_factor * 200,
                  // width: Dimensions.get('window').width / 1.1,
                  width: '100%',
                }}
                repeat={true}
                hideNavigationBarOnFullScreenMode={false}
                minLoadRetryCount={5}
                onError={err => console.log('video playing err', err)}
                // onFullscreenPlayerWillPresent={() => handleFullScreen(true)}
                // onFullscreenPlayerWillDismiss={() => handleFullScreen(false)}
              />
           
          </View>
        </View>
      </Modal>

Reproduction

repository link

Reproduction

Step to reproduce this bug are:

@moskalakamil
Copy link
Member

Hi @rohanthakran, thanks for reporting the issue!

@freeboub
Copy link
Collaborator

can you please setup a sample repo ? I try to wrap the <Video inside a <Modal in the sample, I don't reproduce the issue ...

@freeboub freeboub added the stale Closed due to inactivity or lack or resources label Sep 5, 2024
@freeboub
Copy link
Collaborator

freeboub commented Sep 5, 2024

no feedback, according to: #4051 video works in modal. let's close this ticket

@freeboub freeboub closed this as completed Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

3 participants