Youtube Lagging on Ubuntu 18.04 Running in VM

Video playback on ubuntu 18.04 buffers seriously. I am running the Ubuntu 18.04 in a vm on Windows 10.
I have tried on firefox, chrome and chromium. Still no improvement. I have increased the video memory for the display for the vm to 128 mb. Please help.

Did you try watching a video in a different network? Like at a friend’s home, etc.

Thank you for your concern. I have tried but still the problem persists.