Reset media source

This commit is contained in:
Dmitry Lyzo 2021-09-17 01:20:58 +03:00
parent a7dce35fae
commit 2af0b91dad
3 changed files with 11 additions and 3 deletions

View file

@ -13,6 +13,7 @@ import {
getCrossOriginValue,
enableHlsJsPlayer,
applySrc,
resetSrc,
playWithPromise,
onEndedInternal,
saveVolume,
@ -710,6 +711,8 @@ function tryRemoveElement(elem) {
videoElement.removeEventListener('waiting', this.onWaiting);
videoElement.removeEventListener('error', this.onError); // bound in htmlMediaHelper
resetSrc(videoElement);
videoElement.parentNode.removeChild(videoElement);
}