For h.264 support you will need to install the additional port:

contrib/ffmpeg

For hardware video playback:

about:config

media.glvideo.enabled=true

https://github.com/servo/servo/pull/23483 -> Media player rendering with GL textures by ceyusa