diff --git a/docs/source/platypush/plugins/media.omxplayer.rst b/docs/source/platypush/plugins/media.omxplayer.rst new file mode 100644 index 00000000..e623afea --- /dev/null +++ b/docs/source/platypush/plugins/media.omxplayer.rst @@ -0,0 +1,6 @@ +``platypush.plugins.media.omxplayer`` +===================================== + +.. automodule:: platypush.plugins.media.omxplayer + :members: + diff --git a/docs/source/platypush/plugins/video.omxplayer.rst b/docs/source/platypush/plugins/video.omxplayer.rst deleted file mode 100644 index e60bd9ab..00000000 --- a/docs/source/platypush/plugins/video.omxplayer.rst +++ /dev/null @@ -1,6 +0,0 @@ -``platypush.plugins.video.omxplayer`` -===================================== - -.. automodule:: platypush.plugins.video.omxplayer - :members: - diff --git a/docs/source/plugins.rst b/docs/source/plugins.rst index 80f412f5..54ccce47 100644 --- a/docs/source/plugins.rst +++ b/docs/source/plugins.rst @@ -33,6 +33,7 @@ Plugins platypush/plugins/light.hue.rst platypush/plugins/light.rst platypush/plugins/media.kodi.rst + platypush/plugins/media.omxplayer.rst platypush/plugins/midi.rst platypush/plugins/mqtt.rst platypush/plugins/music.mpd.rst @@ -51,7 +52,6 @@ Plugins platypush/plugins/tts.rst platypush/plugins/utils.rst platypush/plugins/variable.rst - platypush/plugins/video.omxplayer.rst platypush/plugins/weather.forecast.rst platypush/plugins/websocket.rst platypush/plugins/wiimote.rst diff --git a/platypush/backend/http/static/css/video.omxplayer.css b/platypush/backend/http/static/css/media.css similarity index 100% rename from platypush/backend/http/static/css/video.omxplayer.css rename to platypush/backend/http/static/css/media.css diff --git a/platypush/backend/http/static/js/video.omxplayer.js b/platypush/backend/http/static/js/media.js similarity index 94% rename from platypush/backend/http/static/js/video.omxplayer.js rename to platypush/backend/http/static/js/media.js index 31fe9315..793bd882 100644 --- a/platypush/backend/http/static/js/video.omxplayer.js +++ b/platypush/backend/http/static/js/media.js @@ -59,13 +59,13 @@ $(document).ready(function() { request = { type: 'request', - action: 'video.omxplayer.play', + action: 'media.play', args: { resource: resource } }; } else { request = { type: 'request', - action: 'video.omxplayer.search', + action: 'media.search', args: { query: resource } }; @@ -87,7 +87,7 @@ $(document).ready(function() { execute( { type: 'request', - action: 'video.omxplayer.' + action, + action: 'media.' + action, } ); }); @@ -100,7 +100,7 @@ $(document).ready(function() { execute( { type: 'request', - action: 'video.omxplayer.set_volume', + action: 'media.set_volume', args: { volume: $(this).val() } }, @@ -124,7 +124,7 @@ $(document).ready(function() { execute( { type: 'request', - action: 'video.omxplayer.play', + action: 'media.play', args: { resource: $item.data('url') }, }, diff --git a/platypush/backend/http/templates/plugins/video.omxplayer.html b/platypush/backend/http/templates/plugins/media.html similarity index 97% rename from platypush/backend/http/templates/plugins/video.omxplayer.html rename to platypush/backend/http/templates/plugins/media.html index e541972c..351d9836 100644 --- a/platypush/backend/http/templates/plugins/video.omxplayer.html +++ b/platypush/backend/http/templates/plugins/media.html @@ -1,5 +1,5 @@ - - + +