LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
594 stars 147 forks source link

Zooming not working once the video starts #335

Open palashkulsh opened 2 months ago

palashkulsh commented 2 months ago

Describe the bug Even when allowWebViewZoom is present, the zooming doesn't work once the video has started.

To Reproduce

            <View >
                <YoutubePlayer
                    ref={playerRef}
                    height={isFullScreen ? height : 200}
                    width={isFullScreen ? width : '100%'}
                    videoId={videoId}
                    play={true}
            allowWebViewZoom={true}
                    onChangeState={(event) => console.log(event)}
                    //onFullScreenChange={handleFullScreenChange}
                />
            </View>

Expected behavior zoom should work even when the video is running

Screenshots not applicable

Smartphone (please complete the following information):

Additional context none