ember-webrtc-devices
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -8,3 +8,3 @@ { | ||
"tests/dummy/app/router.js":{"path":"tests/dummy/app/router.js","s":{"1":1,"2":1},"b":{},"f":{"1":0},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":8,"column":11},"end":{"line":8,"column":23}}}},"statementMap":{"1":{"start":{"line":4,"column":0},"end":{"line":6,"column":3}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":27}}},"branchMap":{},"code":["import Ember from 'ember';","import config from './config/environment';","","const Router = Ember.Router.extend({"," location: config.locationType","});","","Router.map(function () {});","","export default Router;",""],"l":{"4":1,"8":1}}, | ||
"addon/components/device-selection/component.js":{"path":"addon/components/device-selection/component.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":20,"7":20,"8":20,"9":20,"10":19,"11":0,"12":26,"13":26,"14":26,"15":26,"16":26,"17":20,"18":20,"19":19,"20":19,"21":20,"22":1,"23":1,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":27,"41":1,"42":27,"43":1,"44":26,"45":0,"46":27,"47":1,"48":0},"b":{"1":[19,1],"2":[19,1],"3":[20,19],"4":[1,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[1,26],"11":[1,26],"12":[0,26],"13":[1,26]},"f":{"1":20,"2":20,"3":0,"4":26,"5":20,"6":20,"7":1,"8":0,"9":0,"10":0,"11":0,"12":27,"13":27,"14":26,"15":27,"16":0},"fnMap":{"1":{"name":"didInsertElement","line":34,"loc":{"start":{"line":28,"column":19},"end":{"line":28,"column":22}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":31,"column":36},"end":{"line":31,"column":42}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":33,"column":27},"end":{"line":33,"column":33}}},"4":{"name":"didReceiveAttrs","line":48,"loc":{"start":{"line":40,"column":18},"end":{"line":40,"column":21}}},"5":{"name":"willDestroyElement","line":57,"loc":{"start":{"line":49,"column":21},"end":{"line":49,"column":24}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":63,"column":45},"end":{"line":63,"column":57}}},"7":{"name":"openTroubleshoot","line":76,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":24}}},"8":{"name":"playTestSound","line":82,"loc":{"start":{"line":74,"column":18},"end":{"line":74,"column":21}}},"9":{"name":"(anonymous_9)","line":100,"loc":{"start":{"line":90,"column":23},"end":{"line":90,"column":29}}},"10":{"name":"(anonymous_10)","line":102,"loc":{"start":{"line":92,"column":14},"end":{"line":92,"column":20}}},"11":{"name":"(anonymous_11)","line":104,"loc":{"start":{"line":94,"column":14},"end":{"line":94,"column":20}}},"12":{"name":"changeCamera","line":111,"loc":{"start":{"line":101,"column":17},"end":{"line":101,"column":22}}},"13":{"name":"changeMicrophone","line":117,"loc":{"start":{"line":107,"column":21},"end":{"line":107,"column":26}}},"14":{"name":"changeOutputDevice","line":123,"loc":{"start":{"line":113,"column":23},"end":{"line":113,"column":28}}},"15":{"name":"changeResolution","line":129,"loc":{"start":{"line":119,"column":21},"end":{"line":119,"column":26}}},"16":{"name":"changeFilter","line":135,"loc":{"start":{"line":125,"column":17},"end":{"line":125,"column":26}}}},"statementMap":{"1":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"2":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"3":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"4":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"5":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"6":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"7":{"start":{"line":29,"column":4},"end":{"line":29,"column":30}},"8":{"start":{"line":31,"column":4},"end":{"line":37,"column":7}},"9":{"start":{"line":32,"column":6},"end":{"line":36,"column":7}},"10":{"start":{"line":33,"column":8},"end":{"line":35,"column":11}},"11":{"start":{"line":34,"column":10},"end":{"line":34,"column":113}},"12":{"start":{"line":41,"column":4},"end":{"line":41,"column":30}},"13":{"start":{"line":43,"column":4},"end":{"line":43,"column":67}},"14":{"start":{"line":44,"column":4},"end":{"line":44,"column":75}},"15":{"start":{"line":45,"column":4},"end":{"line":45,"column":75}},"16":{"start":{"line":46,"column":4},"end":{"line":46,"column":79}},"17":{"start":{"line":50,"column":4},"end":{"line":50,"column":30}},"18":{"start":{"line":52,"column":4},"end":{"line":55,"column":5}},"19":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"20":{"start":{"line":54,"column":6},"end":{"line":54,"column":40}},"21":{"start":{"line":64,"column":4},"end":{"line":64,"column":89}},"22":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"23":{"start":{"line":70,"column":8},"end":{"line":70,"column":38}},"24":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"25":{"start":{"line":75,"column":6},"end":{"line":75,"column":48}},"26":{"start":{"line":77,"column":6},"end":{"line":77,"column":60}},"27":{"start":{"line":79,"column":6},"end":{"line":81,"column":7}},"28":{"start":{"line":80,"column":8},"end":{"line":80,"column":15}},"29":{"start":{"line":83,"column":6},"end":{"line":85,"column":7}},"30":{"start":{"line":84,"column":8},"end":{"line":84,"column":60}},"31":{"start":{"line":87,"column":6},"end":{"line":87,"column":25}},"32":{"start":{"line":88,"column":6},"end":{"line":88,"column":28}},"33":{"start":{"line":89,"column":6},"end":{"line":89,"column":57}},"34":{"start":{"line":90,"column":6},"end":{"line":98,"column":9}},"35":{"start":{"line":91,"column":8},"end":{"line":91,"column":71}},"36":{"start":{"line":93,"column":8},"end":{"line":93,"column":47}},"37":{"start":{"line":95,"column":8},"end":{"line":95,"column":28}},"38":{"start":{"line":96,"column":8},"end":{"line":96,"column":30}},"39":{"start":{"line":97,"column":8},"end":{"line":97,"column":21}},"40":{"start":{"line":102,"column":6},"end":{"line":104,"column":7}},"41":{"start":{"line":103,"column":8},"end":{"line":103,"column":89}},"42":{"start":{"line":108,"column":6},"end":{"line":110,"column":7}},"43":{"start":{"line":109,"column":8},"end":{"line":109,"column":97}},"44":{"start":{"line":114,"column":6},"end":{"line":116,"column":7}},"45":{"start":{"line":115,"column":8},"end":{"line":115,"column":101}},"46":{"start":{"line":120,"column":6},"end":{"line":122,"column":7}},"47":{"start":{"line":121,"column":8},"end":{"line":121,"column":97}},"48":{"start":{"line":126,"column":6},"end":{"line":126,"column":41}}},"branchMap":{"1":{"line":40,"type":"if","locations":[{"start":{"line":32,"column":6},"end":{"line":32,"column":6}},{"start":{"line":32,"column":6},"end":{"line":32,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"3":{"line":72,"type":"binary-expr","locations":[{"start":{"line":64,"column":11},"end":{"line":64,"column":35}},{"start":{"line":64,"column":39},"end":{"line":64,"column":88}}]},"4":{"line":77,"type":"if","locations":[{"start":{"line":69,"column":6},"end":{"line":69,"column":6}},{"start":{"line":69,"column":6},"end":{"line":69,"column":6}}]},"5":{"line":89,"type":"if","locations":[{"start":{"line":79,"column":6},"end":{"line":79,"column":6}},{"start":{"line":79,"column":6},"end":{"line":79,"column":6}}]},"6":{"line":89,"type":"binary-expr","locations":[{"start":{"line":79,"column":10},"end":{"line":79,"column":16}},{"start":{"line":79,"column":20},"end":{"line":79,"column":33}}]},"7":{"line":93,"type":"if","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":6}},{"start":{"line":83,"column":6},"end":{"line":83,"column":6}}]},"8":{"line":99,"type":"binary-expr","locations":[{"start":{"line":89,"column":26},"end":{"line":89,"column":38}},{"start":{"line":89,"column":42},"end":{"line":89,"column":56}}]},"9":{"line":103,"type":"binary-expr","locations":[{"start":{"line":93,"column":15},"end":{"line":93,"column":28}},{"start":{"line":93,"column":32},"end":{"line":93,"column":46}}]},"10":{"line":112,"type":"if","locations":[{"start":{"line":102,"column":6},"end":{"line":102,"column":6}},{"start":{"line":102,"column":6},"end":{"line":102,"column":6}}]},"11":{"line":118,"type":"if","locations":[{"start":{"line":108,"column":6},"end":{"line":108,"column":6}},{"start":{"line":108,"column":6},"end":{"line":108,"column":6}}]},"12":{"line":124,"type":"if","locations":[{"start":{"line":114,"column":6},"end":{"line":114,"column":6}},{"start":{"line":114,"column":6},"end":{"line":114,"column":6}}]},"13":{"line":130,"type":"if","locations":[{"start":{"line":120,"column":6},"end":{"line":120,"column":6}},{"start":{"line":120,"column":6},"end":{"line":120,"column":6}}]}},"code":["/* global cheet */","","// import LoggerMixin from 'web-directory/mixins/logger'","import Ember from 'ember';","import layout from './template';","","const {computed, RSVP, Component, inject, run} = Ember;","","export default Component.extend(/* LoggerMixin, */{"," layout: layout,"," classNameBindings: [':device-selection'],",""," selectedCamera: null,"," selectedMicrophone: null,"," selectedResolution: null,"," selectedOutputDevice: null,"," selectedFilter: null,",""," audio: true,"," video: true,"," troubleshoot: true,",""," webrtc: inject.service(),",""," audioCallCapable: computed.reads('webrtc.audioCallCapable'),"," videoCallCapable: computed.reads('webrtc.videoCallCapable'),",""," didInsertElement () {"," this._super(...arguments);",""," run.scheduleOnce('afterRender', () => {"," if (this.get('video')) {"," cheet('i n s t a', () => {"," this.set('advancedOptions', ['willow', 'sutro', 'lofi', 'kelvin', 'inkwell', 'sepia', 'tint', 'none']);"," });"," }"," });"," },",""," didReceiveAttrs () {"," this._super(...arguments);",""," this.send('changeCamera', this.get('selectedCamera.deviceId'));"," this.send('changeMicrophone', this.get('selectedMicrophone.deviceId'));"," this.send('changeResolution', this.get('selectedResolution.presetId'));"," this.send('changeOutputDevice', this.get('selectedOutputDevice.deviceId'));"," },",""," willDestroyElement () {"," this._super(...arguments);",""," if (this.get('video')) {"," cheet.disable('i n s t a');"," this.set('advancedOptions', null);"," }"," },",""," selectedCameraId: computed.reads('selectedCamera.deviceId'),"," selectedResolutionId: computed.reads('selectedResolution.presetId'),"," selectedMicrophoneId: computed.reads('selectedMicrophone.deviceId'),"," selectedOutputDeviceId: computed.reads('selectedOutputDevice.deviceId'),",""," showTroubleshoot: computed('troubleshoot', function () {"," return this.get('troubleshoot') && typeof this.attrs.openTroubleshoot === 'function';"," }),",""," actions: {"," openTroubleshoot () {"," if (typeof this.attrs.openTroubleshoot === 'function') {"," this.attrs.openTroubleshoot();"," }"," },",""," playTestSound () {"," const audio = this.$('.preview-audio')[0];",""," const outputDevice = this.get('selectedOutputDevice');",""," if (!audio || !outputDevice) {"," return;"," }",""," if (!audio.play) {"," return console.warn('Audio playback not supported');"," }",""," audio.muted = true;"," audio.currentTime = 0;"," const playPromise = audio.play() || RSVP.resolve();"," playPromise.then(() => {"," return this.get('webrtc').setOutputDevice(audio, outputDevice);"," }).then(() => {"," return audio.pause() || RSVP.resolve();"," }).then(() => {"," audio.muted = false;"," audio.currentTime = 0;"," audio.play();"," });"," },",""," changeCamera (id) {"," if (this.get('selectedCamera.deviceId') !== id) {"," this.set('selectedCamera', this.get('webrtc.cameraList').findBy('deviceId', id));"," }"," },",""," changeMicrophone (id) {"," if (this.get('selectedMicrophone.deviceId') !== id) {"," this.set('selectedMicrophone', this.get('webrtc.microphoneList').findBy('deviceId', id));"," }"," },",""," changeOutputDevice (id) {"," if (this.get('selectedOutputDevice.deviceId') !== id) {"," this.set('selectedOutputDevice', this.get('webrtc.outputDeviceList').findBy('deviceId', id));"," }"," },",""," changeResolution (id) {"," if (this.get('selectedResolution.presetId') !== id) {"," this.set('selectedResolution', this.get('webrtc.resolutionList').findBy('presetId', id));"," }"," },",""," changeFilter (filter) {"," this.set('selectedFilter', filter);"," }"," }","});",""],"l":{"0":20,"29":20,"31":20,"32":20,"33":19,"34":0,"41":26,"43":26,"44":26,"45":26,"46":26,"50":20,"52":20,"53":19,"54":19,"64":20,"69":1,"70":1,"75":0,"77":0,"79":0,"80":0,"83":0,"84":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":0,"95":0,"96":0,"97":0,"102":27,"103":1,"108":27,"109":1,"114":26,"115":0,"120":27,"121":1,"126":0}}, | ||
"addon/components/device-selection/component.js":{"path":"addon/components/device-selection/component.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":20,"7":20,"8":20,"9":20,"10":19,"11":0,"12":29,"13":29,"14":29,"15":29,"16":29,"17":20,"18":20,"19":19,"20":19,"21":20,"22":1,"23":1,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":31,"41":2,"42":31,"43":2,"44":29,"45":0,"46":32,"47":3,"48":0},"b":{"1":[19,1],"2":[19,1],"3":[20,19],"4":[1,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[2,29],"11":[2,29],"12":[0,29],"13":[3,29]},"f":{"1":20,"2":20,"3":0,"4":29,"5":20,"6":20,"7":1,"8":0,"9":0,"10":0,"11":0,"12":31,"13":31,"14":29,"15":32,"16":0},"fnMap":{"1":{"name":"didInsertElement","line":34,"loc":{"start":{"line":28,"column":19},"end":{"line":28,"column":22}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":31,"column":36},"end":{"line":31,"column":42}}},"3":{"name":"(anonymous_3)","line":41,"loc":{"start":{"line":33,"column":27},"end":{"line":33,"column":33}}},"4":{"name":"didReceiveAttrs","line":48,"loc":{"start":{"line":40,"column":18},"end":{"line":40,"column":21}}},"5":{"name":"willDestroyElement","line":57,"loc":{"start":{"line":49,"column":21},"end":{"line":49,"column":24}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":63,"column":45},"end":{"line":63,"column":57}}},"7":{"name":"openTroubleshoot","line":76,"loc":{"start":{"line":68,"column":21},"end":{"line":68,"column":24}}},"8":{"name":"playTestSound","line":82,"loc":{"start":{"line":74,"column":18},"end":{"line":74,"column":21}}},"9":{"name":"(anonymous_9)","line":100,"loc":{"start":{"line":90,"column":23},"end":{"line":90,"column":29}}},"10":{"name":"(anonymous_10)","line":102,"loc":{"start":{"line":92,"column":14},"end":{"line":92,"column":20}}},"11":{"name":"(anonymous_11)","line":104,"loc":{"start":{"line":94,"column":14},"end":{"line":94,"column":20}}},"12":{"name":"changeCamera","line":111,"loc":{"start":{"line":101,"column":17},"end":{"line":101,"column":22}}},"13":{"name":"changeMicrophone","line":117,"loc":{"start":{"line":107,"column":21},"end":{"line":107,"column":26}}},"14":{"name":"changeOutputDevice","line":123,"loc":{"start":{"line":113,"column":23},"end":{"line":113,"column":28}}},"15":{"name":"changeResolution","line":129,"loc":{"start":{"line":119,"column":21},"end":{"line":119,"column":26}}},"16":{"name":"changeFilter","line":135,"loc":{"start":{"line":125,"column":17},"end":{"line":125,"column":26}}}},"statementMap":{"1":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"2":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"3":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"4":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"5":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"6":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"7":{"start":{"line":29,"column":4},"end":{"line":29,"column":30}},"8":{"start":{"line":31,"column":4},"end":{"line":37,"column":7}},"9":{"start":{"line":32,"column":6},"end":{"line":36,"column":7}},"10":{"start":{"line":33,"column":8},"end":{"line":35,"column":11}},"11":{"start":{"line":34,"column":10},"end":{"line":34,"column":113}},"12":{"start":{"line":41,"column":4},"end":{"line":41,"column":30}},"13":{"start":{"line":43,"column":4},"end":{"line":43,"column":67}},"14":{"start":{"line":44,"column":4},"end":{"line":44,"column":75}},"15":{"start":{"line":45,"column":4},"end":{"line":45,"column":75}},"16":{"start":{"line":46,"column":4},"end":{"line":46,"column":79}},"17":{"start":{"line":50,"column":4},"end":{"line":50,"column":30}},"18":{"start":{"line":52,"column":4},"end":{"line":55,"column":5}},"19":{"start":{"line":53,"column":6},"end":{"line":53,"column":33}},"20":{"start":{"line":54,"column":6},"end":{"line":54,"column":40}},"21":{"start":{"line":64,"column":4},"end":{"line":64,"column":89}},"22":{"start":{"line":69,"column":6},"end":{"line":71,"column":7}},"23":{"start":{"line":70,"column":8},"end":{"line":70,"column":38}},"24":{"end":{"column":0,"line":0},"skip":true,"start":{"column":0,"line":0}},"25":{"start":{"line":75,"column":6},"end":{"line":75,"column":48}},"26":{"start":{"line":77,"column":6},"end":{"line":77,"column":60}},"27":{"start":{"line":79,"column":6},"end":{"line":81,"column":7}},"28":{"start":{"line":80,"column":8},"end":{"line":80,"column":15}},"29":{"start":{"line":83,"column":6},"end":{"line":85,"column":7}},"30":{"start":{"line":84,"column":8},"end":{"line":84,"column":60}},"31":{"start":{"line":87,"column":6},"end":{"line":87,"column":25}},"32":{"start":{"line":88,"column":6},"end":{"line":88,"column":28}},"33":{"start":{"line":89,"column":6},"end":{"line":89,"column":57}},"34":{"start":{"line":90,"column":6},"end":{"line":98,"column":9}},"35":{"start":{"line":91,"column":8},"end":{"line":91,"column":71}},"36":{"start":{"line":93,"column":8},"end":{"line":93,"column":47}},"37":{"start":{"line":95,"column":8},"end":{"line":95,"column":28}},"38":{"start":{"line":96,"column":8},"end":{"line":96,"column":30}},"39":{"start":{"line":97,"column":8},"end":{"line":97,"column":21}},"40":{"start":{"line":102,"column":6},"end":{"line":104,"column":7}},"41":{"start":{"line":103,"column":8},"end":{"line":103,"column":89}},"42":{"start":{"line":108,"column":6},"end":{"line":110,"column":7}},"43":{"start":{"line":109,"column":8},"end":{"line":109,"column":97}},"44":{"start":{"line":114,"column":6},"end":{"line":116,"column":7}},"45":{"start":{"line":115,"column":8},"end":{"line":115,"column":101}},"46":{"start":{"line":120,"column":6},"end":{"line":122,"column":7}},"47":{"start":{"line":121,"column":8},"end":{"line":121,"column":97}},"48":{"start":{"line":126,"column":6},"end":{"line":126,"column":41}}},"branchMap":{"1":{"line":40,"type":"if","locations":[{"start":{"line":32,"column":6},"end":{"line":32,"column":6}},{"start":{"line":32,"column":6},"end":{"line":32,"column":6}}]},"2":{"line":60,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"3":{"line":72,"type":"binary-expr","locations":[{"start":{"line":64,"column":11},"end":{"line":64,"column":35}},{"start":{"line":64,"column":39},"end":{"line":64,"column":88}}]},"4":{"line":77,"type":"if","locations":[{"start":{"line":69,"column":6},"end":{"line":69,"column":6}},{"start":{"line":69,"column":6},"end":{"line":69,"column":6}}]},"5":{"line":89,"type":"if","locations":[{"start":{"line":79,"column":6},"end":{"line":79,"column":6}},{"start":{"line":79,"column":6},"end":{"line":79,"column":6}}]},"6":{"line":89,"type":"binary-expr","locations":[{"start":{"line":79,"column":10},"end":{"line":79,"column":16}},{"start":{"line":79,"column":20},"end":{"line":79,"column":33}}]},"7":{"line":93,"type":"if","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":6}},{"start":{"line":83,"column":6},"end":{"line":83,"column":6}}]},"8":{"line":99,"type":"binary-expr","locations":[{"start":{"line":89,"column":26},"end":{"line":89,"column":38}},{"start":{"line":89,"column":42},"end":{"line":89,"column":56}}]},"9":{"line":103,"type":"binary-expr","locations":[{"start":{"line":93,"column":15},"end":{"line":93,"column":28}},{"start":{"line":93,"column":32},"end":{"line":93,"column":46}}]},"10":{"line":112,"type":"if","locations":[{"start":{"line":102,"column":6},"end":{"line":102,"column":6}},{"start":{"line":102,"column":6},"end":{"line":102,"column":6}}]},"11":{"line":118,"type":"if","locations":[{"start":{"line":108,"column":6},"end":{"line":108,"column":6}},{"start":{"line":108,"column":6},"end":{"line":108,"column":6}}]},"12":{"line":124,"type":"if","locations":[{"start":{"line":114,"column":6},"end":{"line":114,"column":6}},{"start":{"line":114,"column":6},"end":{"line":114,"column":6}}]},"13":{"line":130,"type":"if","locations":[{"start":{"line":120,"column":6},"end":{"line":120,"column":6}},{"start":{"line":120,"column":6},"end":{"line":120,"column":6}}]}},"code":["/* global cheet */","","// import LoggerMixin from 'web-directory/mixins/logger'","import Ember from 'ember';","import layout from './template';","","const {computed, RSVP, Component, inject, run} = Ember;","","export default Component.extend(/* LoggerMixin, */{"," layout: layout,"," classNameBindings: [':device-selection'],",""," selectedCamera: null,"," selectedMicrophone: null,"," selectedResolution: null,"," selectedOutputDevice: null,"," selectedFilter: null,",""," audio: true,"," video: true,"," troubleshoot: true,",""," webrtc: inject.service(),",""," audioCallCapable: computed.reads('webrtc.audioCallCapable'),"," videoCallCapable: computed.reads('webrtc.videoCallCapable'),",""," didInsertElement () {"," this._super(...arguments);",""," run.scheduleOnce('afterRender', () => {"," if (this.get('video')) {"," cheet('i n s t a', () => {"," this.set('advancedOptions', ['willow', 'sutro', 'lofi', 'kelvin', 'inkwell', 'sepia', 'tint', 'none']);"," });"," }"," });"," },",""," didReceiveAttrs () {"," this._super(...arguments);",""," this.send('changeCamera', this.get('selectedCamera.deviceId'));"," this.send('changeMicrophone', this.get('selectedMicrophone.deviceId'));"," this.send('changeResolution', this.get('selectedResolution.presetId'));"," this.send('changeOutputDevice', this.get('selectedOutputDevice.deviceId'));"," },",""," willDestroyElement () {"," this._super(...arguments);",""," if (this.get('video')) {"," cheet.disable('i n s t a');"," this.set('advancedOptions', null);"," }"," },",""," selectedCameraId: computed.reads('selectedCamera.deviceId'),"," selectedResolutionId: computed.reads('selectedResolution.presetId'),"," selectedMicrophoneId: computed.reads('selectedMicrophone.deviceId'),"," selectedOutputDeviceId: computed.reads('selectedOutputDevice.deviceId'),",""," showTroubleshoot: computed('troubleshoot', function () {"," return this.get('troubleshoot') && typeof this.attrs.openTroubleshoot === 'function';"," }),",""," actions: {"," openTroubleshoot () {"," if (typeof this.attrs.openTroubleshoot === 'function') {"," this.attrs.openTroubleshoot();"," }"," },",""," playTestSound () {"," const audio = this.$('.preview-audio')[0];",""," const outputDevice = this.get('selectedOutputDevice');",""," if (!audio || !outputDevice) {"," return;"," }",""," if (!audio.play) {"," return console.warn('Audio playback not supported');"," }",""," audio.muted = true;"," audio.currentTime = 0;"," const playPromise = audio.play() || RSVP.resolve();"," playPromise.then(() => {"," return this.get('webrtc').setOutputDevice(audio, outputDevice);"," }).then(() => {"," return audio.pause() || RSVP.resolve();"," }).then(() => {"," audio.muted = false;"," audio.currentTime = 0;"," audio.play();"," });"," },",""," changeCamera (id) {"," if (this.get('selectedCamera.deviceId') !== id) {"," this.set('selectedCamera', this.get('webrtc.cameraList').findBy('deviceId', id));"," }"," },",""," changeMicrophone (id) {"," if (this.get('selectedMicrophone.deviceId') !== id) {"," this.set('selectedMicrophone', this.get('webrtc.microphoneList').findBy('deviceId', id));"," }"," },",""," changeOutputDevice (id) {"," if (this.get('selectedOutputDevice.deviceId') !== id) {"," this.set('selectedOutputDevice', this.get('webrtc.outputDeviceList').findBy('deviceId', id));"," }"," },",""," changeResolution (id) {"," if (this.get('selectedResolution.presetId') !== id) {"," this.set('selectedResolution', this.get('webrtc.resolutionList').findBy('presetId', id));"," }"," },",""," changeFilter (filter) {"," this.set('selectedFilter', filter);"," }"," }","});",""],"l":{"0":20,"29":20,"31":20,"32":20,"33":19,"34":0,"41":29,"43":29,"44":29,"45":29,"46":29,"50":20,"52":20,"53":19,"54":19,"64":20,"69":1,"70":1,"75":0,"77":0,"79":0,"80":0,"83":0,"84":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":0,"95":0,"96":0,"97":0,"102":31,"103":2,"108":31,"109":2,"114":29,"115":0,"120":32,"121":3,"126":0}}, | ||
"app/components/device-selection/component.js":{"path":"app/components/device-selection/component.js","s":{},"b":{},"f":{},"fnMap":{},"statementMap":{},"branchMap":{},"code":["export { default } from 'webrtc-devices/components/device-selection/component';",""],"l":{}}} |
{ | ||
"total":{"lines":{"total":159,"covered":58,"skipped":0,"pct":36.48},"statements":{"total":172,"covered":71,"skipped":2,"pct":41.28},"functions":{"total":44,"covered":19,"skipped":0,"pct":43.18},"branches":{"total":102,"covered":29,"skipped":0,"pct":28.43},"linesCovered":{"0":32,"4":1,"6":19,"7":1,"8":3,"9":1,"10":2,"11":1,"12":0,"13":1,"14":0,"16":1,"18":0,"19":0,"27":3,"29":20,"31":20,"32":20,"33":19,"34":0,"38":0,"39":0,"40":0,"41":26,"43":26,"44":26,"45":26,"46":26,"47":0,"48":0,"49":0,"50":20,"52":20,"53":19,"54":19,"55":0,"57":0,"64":20,"69":5,"70":5,"71":4,"72":4,"74":4,"75":0,"76":4,"77":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":4,"94":4,"95":0,"96":0,"97":0,"102":27,"103":1,"105":4,"108":27,"109":1,"114":26,"115":0,"116":4,"120":27,"121":1,"126":0,"134":4,"137":4,"138":0,"149":4,"153":4,"154":4,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"167":0,"168":0,"169":0,"171":0,"172":0,"174":0,"175":0,"176":0,"178":0,"179":0,"181":0,"182":0,"183":0,"185":0,"186":0,"188":0,"192":0,"193":0,"195":0,"196":0,"197":0,"198":0,"200":0,"201":0,"206":0,"207":0,"211":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"223":0,"229":0,"230":0,"235":1,"236":0,"239":1,"240":1,"241":1,"244":0,"245":0,"246":0,"247":0,"249":0,"252":0,"254":0,"256":0,"259":0,"260":0,"265":0,"266":0,"267":0,"269":0}}, | ||
"total":{"lines":{"total":159,"covered":58,"skipped":0,"pct":36.48},"statements":{"total":172,"covered":71,"skipped":2,"pct":41.28},"functions":{"total":44,"covered":19,"skipped":0,"pct":43.18},"branches":{"total":102,"covered":29,"skipped":0,"pct":28.43},"linesCovered":{"0":32,"4":1,"6":19,"7":1,"8":3,"9":1,"10":2,"11":1,"12":0,"13":1,"14":0,"16":1,"18":0,"19":0,"27":3,"29":20,"31":20,"32":20,"33":19,"34":0,"38":0,"39":0,"40":0,"41":29,"43":29,"44":29,"45":29,"46":29,"47":0,"48":0,"49":0,"50":20,"52":20,"53":19,"54":19,"55":0,"57":0,"64":20,"69":5,"70":5,"71":4,"72":4,"74":4,"75":0,"76":4,"77":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":4,"94":4,"95":0,"96":0,"97":0,"102":31,"103":2,"105":4,"108":31,"109":2,"114":29,"115":0,"116":4,"120":32,"121":3,"126":0,"134":4,"137":4,"138":0,"149":4,"153":4,"154":4,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"167":0,"168":0,"169":0,"171":0,"172":0,"174":0,"175":0,"176":0,"178":0,"179":0,"181":0,"182":0,"183":0,"185":0,"186":0,"188":0,"192":0,"193":0,"195":0,"196":0,"197":0,"198":0,"200":0,"201":0,"206":0,"207":0,"211":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"223":0,"229":0,"230":0,"235":1,"236":0,"239":1,"240":1,"241":1,"244":0,"245":0,"246":0,"247":0,"249":0,"252":0,"254":0,"256":0,"259":0,"260":0,"265":0,"266":0,"267":0,"269":0}}, | ||
"tests/dummy/app/resolver.js":{"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100},"linesCovered":{}}, | ||
@@ -9,3 +9,3 @@ "tests/dummy/app/app.js":{"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100},"linesCovered":{"6":1,"8":1,"10":1,"16":1}}, | ||
"tests/dummy/app/router.js":{"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"branches":{"total":0,"covered":0,"skipped":0,"pct":100},"linesCovered":{"4":1,"8":1}}, | ||
"addon/components/device-selection/component.js":{"lines":{"total":42,"covered":24,"skipped":0,"pct":57.14},"statements":{"total":48,"covered":30,"skipped":1,"pct":62.5},"functions":{"total":16,"covered":10,"skipped":0,"pct":62.5},"branches":{"total":26,"covered":14,"skipped":0,"pct":53.85},"linesCovered":{"0":20,"29":20,"31":20,"32":20,"33":19,"34":0,"41":26,"43":26,"44":26,"45":26,"46":26,"50":20,"52":20,"53":19,"54":19,"64":20,"69":1,"70":1,"75":0,"77":0,"79":0,"80":0,"83":0,"84":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":0,"95":0,"96":0,"97":0,"102":27,"103":1,"108":27,"109":1,"114":26,"115":0,"120":27,"121":1,"126":0}}, | ||
"addon/components/device-selection/component.js":{"lines":{"total":42,"covered":24,"skipped":0,"pct":57.14},"statements":{"total":48,"covered":30,"skipped":1,"pct":62.5},"functions":{"total":16,"covered":10,"skipped":0,"pct":62.5},"branches":{"total":26,"covered":14,"skipped":0,"pct":53.85},"linesCovered":{"0":20,"29":20,"31":20,"32":20,"33":19,"34":0,"41":29,"43":29,"44":29,"45":29,"46":29,"50":20,"52":20,"53":19,"54":19,"64":20,"69":1,"70":1,"75":0,"77":0,"79":0,"80":0,"83":0,"84":0,"87":0,"88":0,"89":0,"90":0,"91":0,"93":0,"95":0,"96":0,"97":0,"102":31,"103":2,"108":31,"109":2,"114":29,"115":0,"120":32,"121":3,"126":0}}, | ||
"app/components/device-selection/component.js":{"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100},"linesCovered":{}}} |
{ | ||
"name": "ember-webrtc-devices", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Enumerating and selecting media devices from the browser as an ember addon", | ||
@@ -26,12 +26,12 @@ "directories": { | ||
"broccoli-asset-rev": "^2.2.0", | ||
"ember-ajax": "0.7.1", | ||
"ember-cli": "2.3.0", | ||
"ember-cli-app-version": "^1.0.0", | ||
"ember-ajax": "2.5.2", | ||
"ember-cli": "2.9.1", | ||
"ember-cli-app-version": "^2.0.1", | ||
"ember-cli-code-coverage": "0.3.8", | ||
"ember-cli-dependency-checker": "^1.2.0", | ||
"ember-cli-github-pages": "0.0.8", | ||
"ember-cli-github-pages": "0.1.2", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.1", | ||
"ember-cli-inject-live-reload": "^1.3.1", | ||
"ember-cli-qunit": "^1.2.1", | ||
"ember-cli-release": "0.2.8", | ||
"ember-cli-qunit": "^3.0.2", | ||
"ember-cli-release": "0.2.9", | ||
"ember-cli-sri": "^2.0.0", | ||
@@ -44,11 +44,11 @@ "ember-cli-uglify": "^1.2.0", | ||
"ember-intl": "^2.4.1", | ||
"ember-load-initializers": "^0.5.0", | ||
"ember-load-initializers": "^0.6.0", | ||
"ember-resolver": "^2.0.3", | ||
"ember-truth-helpers": "^1.2.0", | ||
"ember-try": "^0.1.2", | ||
"emberx-select": "2.1.0", | ||
"ember-try": "^0.2.8", | ||
"emberx-select": "2.2.2", | ||
"istanbul": "^0.4.5", | ||
"loader.js": "^4.0.0", | ||
"pre-push": "^0.1.1", | ||
"semistandard": "^7.0.5" | ||
"semistandard": "^9.1.0" | ||
}, | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"dependencies": { | ||
"broccoli-json-module": "0.0.1", | ||
"broccoli-json-module": "0.0.2", | ||
"broccoli-merge-trees": "^1.1.1", | ||
@@ -65,0 +65,0 @@ "broccoli-source": "^1.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Addedbroccoli-filter@1.3.0(transitive)
+ Addedbroccoli-json-module@0.0.2(transitive)
+ Addedcopy-dereference@1.0.0(transitive)
- Removedbroccoli-filter@0.1.14(transitive)
- Removedbroccoli-json-module@0.0.1(transitive)
- Removedbroccoli-kitchen-sink-helpers@0.2.9(transitive)
- Removedbroccoli-writer@0.1.1(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedwalk-sync@0.1.3(transitive)
Updatedbroccoli-json-module@0.0.2