Former-commit-id: 00bafb2d4a047f1663f722d5fb8f10b858493051
Former-commit-id: 9b0746d738abd82f8053eb1d162f7fe9e1f8cad2
1.0
wanggang 4 years ago
parent 7e2728a2fa
commit a73cbef028

@ -11,7 +11,7 @@
</div>
</div>
<div class="card-body" style="padding:0;background-color:#000;">
<div class="row video-container" style="height:100%;margin: 0 auto;position:relative;">
<div class="row video-container" style="height:100%;width:100%;position:relative;">
<video poster="images/camera.svg" controls muted autoplay :class="device.number" @volumechange="volumeChange($event)" style="width:100%;height:100%;object-fit:contain;border:none;background-color:#000;"></video>
</div>
</div>

@ -50,7 +50,7 @@
<script src="lib/pubsub-js/pubsub.min.js"></script>
<script src="lib/axios/axios.min.js"></script>
<script src="lib/signalr/signalr.min.js"></script>
<script src="lib/vue/vue.js"></script>
<script src="lib/vue/vue.min.js"></script>
<script src="lib/vue3-sfc-loader/dist/vue2-sfc-loader.js"></script>
<script src="lib/vue-router/vue-router.min.js"></script>
<script src="lib/vuex/vuex.min.js"></script>

@ -161,7 +161,7 @@ function execApi(number, method, query) {
.then(function (response) {
})
.catch(function (error) {
console.log(error);
console.error(error);
})
.finally(function () {
loading.hide();
@ -174,10 +174,10 @@ function execScene(id) {
loading.show();
axios.post(config.service('platform/api/v1/api/execScene'), { id, connectionId })
.then(function (response) {
console.log(response);
//console.log(response);
})
.catch(function (error) {
console.log(error);
console.error(error);
})
.finally(function () {
loading.hide();
@ -213,8 +213,8 @@ function connect() {
if (connection.state === signalR.HubConnectionState.Disconnected) {
connection.start().then(function () {
console.log('signalr connected');
}).catch(function (err) {
console.log(err);
}).catch(function (error) {
console.error(error);
setTimeout(connect, 5000);
});
}
@ -250,7 +250,6 @@ var loading = {
var connectionId;
var connection = new signalR.HubConnectionBuilder().withUrl(config.service('platform/hub?group=page')).build();
connection.onclose(function () {
console.log('connect closed');
connect();
});
@ -260,7 +259,6 @@ connection.on('Connected', function (id) {
});
connection.on("ServerToClient", function (method, message, to, from) {
console.log(method);
PubSub.publish(method, { message: message, to: to, from: from });
});
//connect();

Loading…
Cancel
Save