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]: Adding "startPosition" to source throws error #216

Open
bumpingChris opened this issue Jan 21, 2025 · 2 comments
Open

[BUG]: Adding "startPosition" to source throws error #216

bumpingChris opened this issue Jan 21, 2025 · 2 comments
Labels

Comments

@bumpingChris
Copy link

Version

0.15.0

What platforms are you having the problem on?

iOS

System Version

react-native 0.69, react-native-video: 6.9.1

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

What happened is:

Adding "startPosition" parameter to source prop causes an error.

Does anyone know how to fix this?

Reproduction Link

repository link

Reproduction

Step to reproduce this bug are:

When I added "startPosition" key to the source parameter, I get an error: "Invariant Violation: [124553,"RCTView",{"flexGrow":"<>"}] is not usable as a native method argument"

If instead of using react-native-video-player, and revert to react-native-video, the error goes away and the startPosition feature is working fine.

This is the code:

<VideoPlayer
                    ref={ref => playerRef.current = ref}
                    style={{
                      height:160,
                      width: 120,
                      backgroundColor: '#FFFFFF'
                    }}
                    pauseOnPress={true}
                    autoplay={true}
                    disableFullscreen={true}
                    resizeMode={'cover'}
                    muted={false}
                    repeat={false}
                    rate={1}
                    ignoreSilentSwitch={'ignore'}
                    disableSeek={false}
                    controls={false}
                    source={{
                      uri: infoVideo,
                      startPosition: videoStartPos
                    }}
                    selectedAudioTrack={{ type: 'system' }}
                    progressUpdateInterval={1000}
/>
Copy link
Contributor

github-actions bot commented Jan 21, 2025

Previous bot comment (click to expand)

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • what happened?
  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

There is a newer version of the library available. You are using version 0.15.0, while the latest stable version is 6.9.1. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

@bumpingChris bumpingChris changed the title [BUG]: Adding "StartPosition" to source throws error [BUG]: Adding "startPosition" to source throws error Jan 21, 2025
Copy link
Contributor

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • what happened?
  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

There is a newer version of the library available. You are using version 0.15.0, while the latest stable version is 6.9.1. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant