Situation: we use AdapterJS to polyfill some webRTC into internet explorer. All fine and dandy, it correctly replaces <video #someRef> with <object> in ie and works swell.
Problem is if we want to change the video, the video tag is missing.
I can see 2 ways of solving this (without rewriting a lot of logic elsewhere)
- use Renderer to somehow add
<video #someRef>into the template so ViewChild can see it - somehow retrieve an ElementRef from the parent (
parentRef.nativeElement.children[0]somehow returned as anElementRefwhich we need to use elsewhere, not just HTMLVideoElement)
Not sure how to do either, renderer doesn't seem to have a specific way of adding the template reference for viewChild on a new element
And I don't think you can simply declare parentRef.nativeElement.children[0] as an ElementRef since it's missing some stuff.
Any ideas? Hope my question isn't massively confusing