How to properly unload/destroy a VIDEO element

后端 未结 15 2148
闹比i
闹比i 2020-12-04 07:58

I\'m working on a realtime media browsing/playback application that uses objects in the browser for playback, when available.

I\'m using a

15条回答
  •  感动是毒
    2020-12-04 08:29

    Not much complicated. Just put your src to null.

    Eg: document.querySelector('#yourVideo').src = null;
    

    It will remove your video src attribute. Done.

提交回复
热议问题