This commit is contained in:
2024-10-29 18:29:56 +08:00
parent 129e407646
commit 4d4d409cc7
6 changed files with 459 additions and 0 deletions

1
Web/js/CommonConfig.js Normal file
View File

@@ -0,0 +1 @@
var headerModel=0;

19
Web/js/httpUtils.js Normal file
View File

@@ -0,0 +1,19 @@
/**
*
* @param {*} callback 回调
*/
function getLiveVideoList(callback){
fetch("/live/video/list")
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
})
.then(data => {
callback.success(data);
})
.catch(error => {
callback.error(error);
});
}