added video buffering in MediaStreamPlayer class