I'm setting up a simple little OSMF-based media player, and I have hooked up the org.osmf.captioning plugin found in the samples. It is working just groovy with video, but it doesn't seem to do anything when playing audio. On initial inspection, I can't see anything in the plugin that ties it to a specific type of media. Does the captioning plugin support audio playback? Have I perhaps set it up badly?
I have since found that the Captioning plugin uses the org.osmf.net.NetLoader's 'canHandleResource' method to identify compatible media. This means that only video types will be supported. This seems like something of an oversight considering the very flexible nature of OSMF. It seems like anything with a time trait should be supported. In any case, I simply replaced that method with a more lenient one, and hey presto, it works. The offending code is in CaptioningPluginInfo where the MediaFactoryItem is defined.
Thank you for your correct solution, we'll track it at https://bugs.adobe.com/jira/browse/FM-1484
North America
Europe, Middle East and Africa
Asia Pacific