I found a solution with help of Archerbob's comment. We can disable all video codecs and permanently lock this setting using various blockers available on Playstore such as BlockerX and Blockerhero. I added about:config to the blocked keywords and now I am totally blocked out of this setting.
This blocking codec thing did not work well with youtube but somehow solved my problem. Anybody looking for a solution can give it a try.