@priyadharshan.b You don’t have to manually remove the video element or unload the player. When player.destroy()
is called, the player handles these actions internally. You can simply destroy the player, wait for the callback, and then start loading the next source.
Here is the sample code:
player.destroy().then(() => {
loadSource(nextsource);
})