Use event LEVEL_HANDLED (warning: only implemented in our fork) instead of LEVEL_LOADED Trigger onTrackChange before onMapUpdate, because otherwise the P2P module with update its ongoingSegments without clearing the ones from the old track first
Use event LEVEL_HANDLED (warning: only implemented in our fork) instead of LEVEL_LOADED
Trigger onTrackChange before onMapUpdate, because otherwise the P2P module
with update its ongoingSegments without clearing the ones from the old track first

streamroot/hlsjs-p2p-wrapper,streamroot/hlsjs-p2p-wrapper,streamroot/hlsjs-p2p-wrapper