I think i was encountering a cors issue when trying to dynamical construct an embedded youtube video because I couldn't ever get the thing to load even though i'm sure I had the html and properties and values correct.
I opted to just handle .mp3, .mp4, .png, & .gif media urls instead.
I used my .includes() method in a prior function node on the appropriate properties then passed them along to my template node that looked like (note this next code segment is inside a ng-repeating div)