|
@@ -15,37 +15,6 @@ $(document).ready(function() {
|
|
|
$('.title p').html(title)
|
|
|
console.log(boardUrl)
|
|
|
console.log(desktopUrl)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
let bigVideo = new FlvJsPlayer({
|
|
|
"id": "bigVideo",
|
|
|
"url": boardUrl,
|
|
@@ -86,17 +55,24 @@ $(document).ready(function() {
|
|
|
smallVideo.volume = 1;
|
|
|
console.log(smallVideo.volume);
|
|
|
})
|
|
|
+ let time = null;
|
|
|
|
|
|
- function shareJoin () {
|
|
|
- setTimeout(function () {
|
|
|
- $.get(`${process.env.BASE_API}sharedWhiteBoard/shareJoin/update`, {
|
|
|
- shareJoinUserId
|
|
|
- }, function (res) {
|
|
|
- if(res.code == 200) {
|
|
|
- shareJoin();
|
|
|
+ time = setInterval(function () {
|
|
|
+ $.get(`${process.env.BASE_API}sharedWhiteBoard/shareJoin/update`, {
|
|
|
+ shareJoinUserId
|
|
|
+ }, function (res) {
|
|
|
+ if(res.code == 200) {
|
|
|
+ if(res.data.status == 'DEL') {
|
|
|
+
|
|
|
+ bigVideo.destroy();
|
|
|
+ smallVideo.destroy();
|
|
|
+ $('.title p').hide();
|
|
|
+ $('.video').css('background', '#ccc');
|
|
|
+ $('.err').show();
|
|
|
+ clearTimeout(time);
|
|
|
+
|
|
|
}
|
|
|
- });
|
|
|
- },5000)
|
|
|
- }
|
|
|
- shareJoin();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },5000)
|
|
|
})
|