Updated to use the version 3 of the api, replaced deprecated getVideoBytesLoaded() getVideoBytesTotal() with getVideoLoadedFraction().