From 3a5a731bd2c76d63af7989688ab1e94b15894a13 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 4 Aug 2019 16:50:35 +0200 Subject: [PATCH] pause and then play omxplayer in the play handler to make sure that all the proper events are generated upon play --- platypush/plugins/media/omxplayer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/media/omxplayer.py b/platypush/plugins/media/omxplayer.py index bab8f88aa..e76b7288a 100644 --- a/platypush/plugins/media/omxplayer.py +++ b/platypush/plugins/media/omxplayer.py @@ -81,6 +81,8 @@ class MediaOmxplayerPlugin(MediaPlugin): 'be able to control the media') self.logger.exception(e) + self._player.pause() + self._player.play() return self.status() @action