Changing currentTime of video in Rails webpacker-react component
So I was able to put a react component in a sandbox and get it working as I wanted. In isolation it just manages the currentTime of a video. In the main app clicking a button changes the state of
timestamp (in Redux) which is supplied to the featured component
VideoPlayer which then changes currentTime of the referenced video.
In my Rails project (repo) it is supposed to do that as well as control the state of a post containing video and reviews with comments (called tips) using Redux. However, when I put the component in my Rails project the component fails to seek through the video despite the component receiving the timestamp and having the right reference to the video.
Here is me clicking on buttons in the modal and what is being sent back via
console.log(). The feedback "inside seek" tells me (1) that the function
timestamp. However, it does reset to 0 (the video property, not Redux state) every time I update the state by clicking a button. (idk, might be important?) The other than 0 numbers you are seeing is when I let the video play and then I click a button; it returns the above feedback as well as where the video's currentTime.
The videos are uploaded to Rails Active Storage when a post is created and the urls are sent to my webpacker-react component rendered in
From searching for a solution it might have to do with byte range support but I'm not getting any of the errors that are described in those questions so I'm at a loss for what to do. Let me know if you guys need anything else and thank you in advance for your help.