mirror of
https://github.com/AirenSoft/OvenPlayer.git
synced 2025-03-15 19:12:50 +00:00
* Issue #391 - destroy player even when videoElement not created * Issue #391 - destroy player even when videoElement not created --------- Co-authored-by: Matthew James <matt@192-168-1-107.tpgi.com.au>
This commit is contained in:
@ -65,7 +65,9 @@ const Manager = function(container, browserInfo){
|
||||
that.destroy = () =>{
|
||||
$container.removeChild();
|
||||
$container = null;
|
||||
videoElement.srcObject = null;
|
||||
if(videoElement!=null && videoElement!=='') {
|
||||
videoElement.srcObject = null;
|
||||
}
|
||||
videoElement = null;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user