Yes it is possible! For this download Media Keys from addons.mozilla.org. This tool adds a media key event listener to Firefox and makes it possible to use:
on every supported music/video site.
For some reason the media keys are only working if Firefox is the active window (occured on Windows 10). Also add-on currently does not work with Firefox 57+.