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

Youtube cannot loop a fragment of videao #897

Closed
hadson172 opened this issue May 22, 2020 · 0 comments
Closed

Youtube cannot loop a fragment of videao #897

hadson172 opened this issue May 22, 2020 · 0 comments

Comments

@hadson172
Copy link

Current Behavior

I wanted to loop a specific fragment on video using this:

          <ReactPlayer url={`https://www.youtube.com/embed/${this.videoId}`}
                       ref={this.ref}
                       config={{
                           youtube: {
                               playerVars: {
                                   start: this.state.startSecond,
                                   end: this.state.endSecond,
                               }
                           }
                       }}
                       loop
                       playbackRate={this.state.playbackRate}
                       playing
                       controls/>

When the video will get to this.state.endSecond it will start from 0 not from this.state.startSecond

Expected Behavior

I should be able to loop a video fragment.

Environment

  • Browser: Chrome
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this issue May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this issue Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant