diff --git a/platypush/backend/http/static/js/plugins/media/index.js b/platypush/backend/http/static/js/plugins/media/index.js index 5afe6232..6cf186c4 100644 --- a/platypush/backend/http/static/js/plugins/media/index.js +++ b/platypush/backend/http/static/js/plugins/media/index.js @@ -295,10 +295,16 @@ Vue.component('media', { delete event.resource; } - if (status.state !== 'stop') { + if (status.state !== 'stop' || event.type.endsWith('.MediaPlayEvent')) { status.title = status.title || this.status[type][player].title; } + if (event.type.endsWith('.MediaPlayEvent')) { + status.state = 'play'; + } else if (event.type.endsWith('.MediaPauseEvent')) { + status.state = 'pause'; + } + Vue.set(this.status[type], player, status); },