I am developing a website with VoIP. I am setting the srcObj
property of an audio
element with the MediaStream of the user at the other end of the line (using PeerJS). I am also showing the time since the start of the call by displaying the currentTime
property of the audio element every second.
This works fine on desktop browsers, but on mobile browsers (specifically Chrome on iOS), the currentTime
property is way too high. Like it is equal to several hours when the call has just started.
Has anyone also experienced this or knows why this happens?