From 69e1dfc223d5ddce2d1eba4d537339e8afe32c2c Mon Sep 17 00:00:00 2001 From: Mustafa Yontar Date: Wed, 8 Apr 2020 17:10:24 +0300 Subject: [PATCH] remove : function --- src/lib/VueJanus.vue | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/lib/VueJanus.vue b/src/lib/VueJanus.vue index c7259d6..52ad4b8 100644 --- a/src/lib/VueJanus.vue +++ b/src/lib/VueJanus.vue @@ -107,14 +107,17 @@ }, methods: { - janusPluginError: function (error) { + screenShare () { + + }, + janusPluginError (error) { console.log(error) }, - consentDialog: function (on) { + consentDialog (on) { // this.$janus.debug("Consent dialog should be " + (on ? "on" : "off") + " now"); console.log(on) }, - janusPluginSuccess: function (pluginHandle) { + janusPluginSuccess (pluginHandle) { this.pluginHandle = pluginHandle this.$janus.log("Plugin attached! (" + this.pluginHandle.getPlugin() + ", id=" + this.pluginHandle.getId() + ")"); this.$janus.log(" -- This is a publisher/manager"); @@ -123,7 +126,7 @@ }, - initDevices: function (devices) { + initDevices (devices) { console.log(devices) devices.forEach(device => { if (device.kind === 'videoinput') { @@ -136,18 +139,18 @@ }) this.deviceSelectDialog = true }, - genRemoteFeed: function () { + genRemoteFeed () { this.remoteStreams.forEach(item => { this.createRemoteFeed(item) }) }, - offerSend: function (jsep) { + offerSend (jsep) { console.log('vid offer') var publish = {"request": "configure", "audio": true, "video": true}; this.pluginHandle.send({"message": publish, "jsep": jsep}); }, - controlPublishers: function(msg) { + controlPublishers(msg) { msg["publishers"].forEach(item => { var has = false this.remoteStreams.forEach(rm => { @@ -159,7 +162,7 @@ }) }, - janusMessage: function (msg, jsep) { + janusMessage (msg, jsep) { console.log(msg); var event = msg["videoroom"]; if (event !== undefined) { @@ -194,14 +197,14 @@ } } }, - onlocalstream: function (stream) { + onlocalstream (stream) { this.mystream = stream console.log(this.$refs) console.log(this.$refs["ownstream"]) this.$refs.ownstream.srcObject = this.mystream }, - restartDevices: function () { + restartDevices () { this.deviceSelectDialog = false var media = { @@ -231,17 +234,17 @@ } }) }, - webrtcState: function (on) { + webrtcState (on) { this.$janus.log("Janus says our WebRTC PeerConnection is " + (on ? "up" : "down") + " now"); }, - mediaState: function (medium, on) { + mediaState (medium, on) { this.$janus.log("Janus " + (on ? "started" : "stopped") + " receiving our " + medium); }, - changeDevice: function () { + changeDevice () { this.$refs.ownstream.setSinkId(this.selectedVideo) this.$refs.ownstream.setSinkId(this.selectedAudio) }, - selectDevice: function () { + selectDevice () { if (!this.started) { console.log(this.selectedVideo) console.log(this.selectedAudio) @@ -257,7 +260,7 @@ this.restartDevices() } }, - janusSuccess: function () { + janusSuccess () { this.opaqueId = "videoroomtest-" + this.$janus.randomString(12); this.janusInit.attach(