@ingmar wrote:
We discovered the following issue:
scanForMedia Parameter does not work for youtube videos
Given an embedded youtube video, e.g.:
we want to call “scanForMedia” and limit the scan to
as documented here:
https://developer.piwik.org/guides/media-analytics/reference#scanformediadocumentorhtmlelementtoscanformediaHowever, the call to scanForMedia(divVideo) fails: If scanForMedia finds a youtube video, it attempts to call createElement(“script”) on its parameter (the video div in our case). This will only work on the document. Therefore we cannot limit the scan for embedded youtube videos. (NB: In contrast, it does work for html5 videos.)
Posts: 2
Participants: 2