Improved iframe API for playback/record, see https://github.com/phetsims/joist/issues/174