OK, so I have built an OSMF player and the brief was to implement closed captioning. So far, so good, I went to here:
All worked well enough using a SerialElement to schedule content. but then the brief was to implement a new style of advertising and...
Midrolls may or may not be inserted at unknown points and, with a single file for my main content, the only logical way to implement it is to pause within a ParallelElement. That way, the advertising can overlay ads as MediaElements at appropriate points and stop / start / play / pause to its merry satisfaction.
OSMFCCDecoder class breaks with ParallelElement.
It simply does nothing.
There is no way to specify a clip to listen to. No way to get it to show anything.
Therefore, I can either have closed captioning or advertising and, unsurprisingly, my customer wants both...
Is there any way to get sources for OSMFCCDecoder or, better, a more controllable version of OSMFCCDecoder?
There was a typo in my code:
Actually, CC doesn't work with _either_ SerialElement or ParallelElement, but does with ProxyElement.
Not good news.
I've been working on a work-around using solely ProxyElement without the ParallelElement or SerialElement...
It seems that any modification to the flow at all will break captions. If I use the ProxyElement as a wrapper and set .proxiedElement to the content element once I have checked the ad tags, then captions are broken for that, too.
It seems that the proxy will only work if it is setup with the content element as proxied child on startup... which is sub-ideal.