diff --git a/html5/verto/verto_communicator/src/css/verto.css b/html5/verto/verto_communicator/src/css/verto.css
index 4da5f19cc1..aa9157436a 100644
--- a/html5/verto/verto_communicator/src/css/verto.css
+++ b/html5/verto/verto_communicator/src/css/verto.css
@@ -1679,6 +1679,11 @@ body:-webkit-full-screen #incall .video-footer {
animation: growY .2s reverse;
}
+.unsupported {
+ color: grey;
+ font-size: 10px;
+}
+
@keyframes growY {
from { max-height:2000px;}
to { max-height:0px;}
diff --git a/html5/verto/verto_communicator/src/partials/modal_settings.html b/html5/verto/verto_communicator/src/partials/modal_settings.html
index 4cb666fbbb..c7c4470d4a 100644
--- a/html5/verto/verto_communicator/src/partials/modal_settings.html
+++ b/html5/verto/verto_communicator/src/partials/modal_settings.html
@@ -24,8 +24,13 @@
-
-
diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
index 5f965a2a74..6094e5052f 100644
--- a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
+++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
@@ -54,10 +54,9 @@
});
$rootScope.$on('changedSpeaker', function(event, speakerId) {
- // This should provide feedback
- //setAudioPlaybackDevice([,[,]]);
- // if callback is set it will be called as callback(, , )
- verto.data.call.setAudioPlaybackDevice(speakerId);
+ if (verto.data.call) {
+ verto.data.call.setAudioPlaybackDevice(speakerId, sinkIdCallback);
+ }
});
/**
@@ -527,6 +526,13 @@
});
};
+ function sinkIdCallback(success, deviceName) {
+ if (success) {
+ toastr.info('Speaker is now ' + deviceName + '', 'Success', { allowHtml: true });
+ } else {
+ toastr.error('Your browser doesn\'t seem to support this feature', 'Error');
+ }
+ }
}
);
diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js
index a8259ddc95..c1665eacca 100644
--- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js
+++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ModalSettingsController.js
@@ -12,6 +12,8 @@
$scope.verto = verto;
$scope.mydata = angular.copy(storage.data);
+ $scope.speakerFeature = typeof document.getElementById('webcam').sinkId !== 'undefined';
+
$scope.ok = function() {
if ($scope.mydata.selectedSpeaker != storage.data.selectedSpeaker) {
$rootScope.$emit('changedSpeaker', $scope.mydata.selectedSpeaker);