M
M
Mikhailo Poberezhny2016-04-13 23:20:47
Angular
Mikhailo Poberezhny, 2016-04-13 23:20:47

How to make a voice notification like in VK or Fb in Angular?

I have a chat, how can I make a voice notification on this?

socket.on('new message', function(message) {
      $scope.messages.push(message);
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nagaev, 2016-04-14
@as_for_me

new Audio('sample.mp3').play()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question