mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 01:50:24 -05:00
Fix bug where video stream continued fetching on player close.
This commit is contained in:
@@ -127,7 +127,12 @@ function onSelectVideo(camera, range, recording) {
|
||||
dialog.dialog({
|
||||
title: camera.shortName + ", " + formattedStart + " to " + formattedEnd,
|
||||
width: recording.videoSampleEntryWidth / 4,
|
||||
close: function() { dialog.remove(); },
|
||||
close: () => {
|
||||
const videoDOMElement = video[0];
|
||||
videoDOMElement.pause();
|
||||
videoDOMElement.src = ''; // Remove current source to stop loading
|
||||
dialog.remove();
|
||||
},
|
||||
});
|
||||
video.attr("src", url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user