Updated to use version 3 of the api, replaced a couple of deprecated functions

...esLoaded() getVideoBytesTotal() with getVideoLoadedFraction().