iframe player: small refactory