-
Notifications
You must be signed in to change notification settings - Fork 100
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
Media still looping with loop={false} #24
Comments
Ah dang 😞 sorry about that. I'll look at this ASAP. Hopefully tomorrow or later this week. If you want to take a look, this is where looping is handled. Wondering if something is preventing |
Thanks for the link. I set a breakpoint in that handler and it does fire at the end of the call. <Player src={src} loop={false} onEnded={toggle} /> This works, but it seems like I shouldn't have to do that, right? |
Actually I have to correct myself. The above only works if I pause at a breakpoint to inspect things. If I clear the breakpoints, the call continues looping and an error is raised.
|
Interesting.. I'm guessing somewhere |
@souporserious Just making sure this doesn't go stale. We might be revisiting this in the next couple weeks. I totally get that OSS doesn't pay the bills though. |
Sorry, I've been trying to find time for this. I'm hoping to be able to fix this along with another bug we found in our app. I was also going to start looking at allowing the library to play with Redux better. This is my initial sketch for what I thought it could look like:
Does that makes sense and does it seem like it could work? Sorry if that's totally wrong haha, I don't have much experience with Redux yet. |
Currently, <Media isPlaying={somePropFromMyReduxStore} onPlayPause={someActionBoundToDispatch}> Your code could then use its own state & callbacks if the user hasn't provided any. If they have been provided, we would only use the Another option would be to do something like I'm not sure how well either one of these works with your current design. Maybe there are other ways. |
Sweet, that's what I had in mind :) I had an idea last night that Then you could add the Thanks for the feedback! I appreciate it :) |
Yes, I think you could render the |
Hello again! I am working from the same setup that I described in #23. I swear this was working before I'd solved that problem, but now my media loops despite setting the
loop
prop tofalse
. This was actually the problem we set out to solve by upgrading the package!Here's the outermost container:
And here's the
<CallPlayer />
Any idea why it might be looping?
The text was updated successfully, but these errors were encountered: