Skip to content

fix(directfile): fix side effects for multiples instance of media element track store#1845

Open
Florent-Bouisset wants to merge 3 commits into
devfrom
fix/safari-media-track-store
Open

fix(directfile): fix side effects for multiples instance of media element track store#1845
Florent-Bouisset wants to merge 3 commits into
devfrom
fix/safari-media-track-store

Conversation

@Florent-Bouisset
Copy link
Copy Markdown
Collaborator

fix(directfile): fix side effects for multiples instance of media element track store

having multiple instance of media element track store could mess up the
state of videoElement.audioTracks by overwriting the 'onaddtrack' and
'onremovetrack' event listeners

…rectfile content

The startAt.fromLivePosition was not checking correctly that the
wanted position was finite. It would lead to seeking to "Infinity" in some cases.
Now the player wait that the media element has duration or seekable proprety defined
and finite before calculating the wanted position.
…ment track store

having multiple instance of media element track store could mess up the
state of videoElement.audioTracks by overwriting the 'onaddtrack' and
'onremovetrack' event listeners
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

✅ Automated performance checks have passed on commit 9743e3cf8c7c37df430410573fcf6c7136881d63 with the base branch dev.

Details

Performance tests 1st run output

No significative change in performance for tests:

Name Mean Median
loading 24.60ms -> 24.65ms (-0.052ms, z: 0.54224) 34.80ms -> 34.80ms
seeking 229.38ms -> 237.38ms (-7.993ms, z: 0.70400) 17.85ms -> 17.85ms
audio-track-reload 31.42ms -> 31.39ms (0.027ms, z: 1.39730) 46.35ms -> 46.20ms
cold loading multithread 52.22ms -> 52.42ms (-0.198ms, z: 8.13571) 77.25ms -> 76.35ms
seeking multithread 215.06ms -> 217.10ms (-2.037ms, z: 0.26651) 19.20ms -> 19.35ms
audio-track-reload multithread 30.92ms -> 30.66ms (0.259ms, z: 4.34817) 45.30ms -> 44.70ms
hot loading multithread 21.37ms -> 21.20ms (0.162ms, z: 2.80428) 31.35ms -> 31.05ms

@github-actions
Copy link
Copy Markdown

✅ Automated performance checks have passed on commit 71c9c558a47438aa43931eb419dafbcd836d95b6 with the base branch dev.

Details

Performance tests 1st run output

No significative change in performance for tests:

Name Mean Median
loading 25.98ms -> 26.10ms (-0.118ms, z: 0.99871) 36.75ms -> 36.75ms
seeking 201.54ms -> 190.88ms (10.656ms, z: 0.79982) 19.20ms -> 19.20ms
audio-track-reload 33.51ms -> 33.58ms (-0.078ms, z: 0.96511) 49.20ms -> 49.50ms
cold loading multithread 54.36ms -> 54.26ms (0.099ms, z: 6.70371) 80.10ms -> 79.05ms
seeking multithread 143.71ms -> 132.34ms (11.377ms, z: 0.96733) 21.30ms -> 21.45ms
audio-track-reload multithread 32.72ms -> 32.71ms (0.011ms, z: 0.70425) 48.00ms -> 48.00ms
hot loading multithread 22.48ms -> 23.06ms (-0.583ms, z: 0.87621) 32.55ms -> 32.55ms

@Florent-Bouisset Florent-Bouisset added the bug This is an RxPlayer issue (unexpected result when comparing to the API) label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This is an RxPlayer issue (unexpected result when comparing to the API)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant