Changed to stringstream, kind of works but can't get video player to work...