Browsers Can not Stream Video in Ubuntu

I am using Ubuntu 18.04, I am unable to stream video in the browser from youtube, udemy or any other site. I've already tried chrome and firefox. Although the video is loading, the only problem is streaming.