You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need to add listeners to some of the View360 events (timeupdate, durationchange, canplay, etc.), but the props to do so on the React implementation do not work.
I tried accessing the HTMLMediaElement directly and adding listeners on it instead and it only partially works. The durationchange and canplay events are triggered, but the timeupdate is only triggered once, instead of on each currentTime change.
Note this is temporary code, but the idea is to see if it would log the events using addEventListener and the props.
I only get the logs from the listeners added with addEventListener, but not with the props :
Also, the video is started as soon as it is ready with this code and, as mentioned above, I would expect the timeUpdate to be triggered regularly but it is only triggered once. I also tried using the autoplay or starting the video with a plugin play button to see if it would change the way the video is loaded (after seeing issues related to that i.e.: https://stackoverflow.com/questions/9770247/html5-video-timeupdate-event-not-firing), but to not avail.
The text was updated successfully, but these errors were encountered:
Description
Hi, I need to add listeners to some of the View360 events (timeupdate, durationchange, canplay, etc.), but the props to do so on the React implementation do not work.
I tried accessing the HTMLMediaElement directly and adding listeners on it instead and it only partially works. The durationchange and canplay events are triggered, but the timeupdate is only triggered once, instead of on each currentTime change.
I am using "@egjs/react-view360": "4.0.0-beta.7".
Steps to check or reproduce
Note this is temporary code, but the idea is to see if it would log the events using addEventListener and the props.
I only get the logs from the listeners added with addEventListener, but not with the props :
Also, the video is started as soon as it is ready with this code and, as mentioned above, I would expect the timeUpdate to be triggered regularly but it is only triggered once. I also tried using the autoplay or starting the video with a plugin play button to see if it would change the way the video is loaded (after seeing issues related to that i.e.: https://stackoverflow.com/questions/9770247/html5-video-timeupdate-event-not-firing), but to not avail.
The text was updated successfully, but these errors were encountered: