I haven't used that node yet, but from the source code it seems that it already offers something alike:
Is possible to play or pause a video by msg.play...
And if it doesn't support it yet, it would be nice if you could ask the author to implement it. That way other users can benefit from your adventure ...
I will try it with ui-media node.
I want the video as background over the full screen and therefore it is very easy with the ui-template node. But my HTML and CSS skills are not good enough to stop and continue the video with the payload.
The sun is shining too much, to sit the whole day behind my computer
But here a few links to get you started:
Here is explained how to watch an incoming message in your template. You could also watch the entire message if you are not only interested in the payload, but e.g. in a msg.play field or whatever:
scope.$watch('msg', function(msg) {
// Here you can read e.g. your msg.payload
});
As soon as a message arrives in that code snippet, you need to get there a reference to your 'video' element (i.e. to the video tag). Then you can pause/resume/... that video. You can find javascript examples for that all over the internet. E.g. here.