diff --git a/platypush/plugins/media/chromecast.py b/platypush/plugins/media/chromecast.py index 25fb6df2..04dbe90c 100644 --- a/platypush/plugins/media/chromecast.py +++ b/platypush/plugins/media/chromecast.py @@ -212,6 +212,20 @@ class MediaChromecastPlugin(Plugin): return self.get_chromecast(chromecast or self.chromecast).media_controller.seek(location) + @action + def back(self, chromecast=None, delta=30): + mc = self.get_chromecast(chromecast or self.chromecast).media_controller + if mc.status.current_time: + return mc.seek(mc.status.current_time-delta) + + + @action + def forward(self, chromecast=None, delta=30): + mc = self.get_chromecast(chromecast or self.chromecast).media_controller + if mc.status.current_time: + return mc.seek(mc.status.current_time+delta) + + @action def is_playing(self, chromecast=None): return self.get_chromecast(chromecast or self.chromecast).media_controller.is_playing