Detect player by iframe URL, not element id; simplified URL protocol extraction.
Generalized event handling and Google Tag Manager implementation.