Closed neilrackett closed 9 years ago
OK, so the solution was embarrassingly simple: I just needed to use player.mediaFactory.createMediaElement(resource);
instead of new VideoElement(resource);
to resolve the issues in the source code above.
(Though I'm still not sure what the issues are in the more complex players)
Simply nice that you provided this feedback. Thanks!
Getting the plugin to work with provided SMP is easy and works really well, but the plugin doesn't seem to work with bespoke OSMF media players.
For example, the following is the source code for a simple OSMF player (built with the latest official OSMF SWC) that should work as a drop-in replacement for the SMP in the demo page, but it doesn't work; you can see that everything is loading, but it always results in
playbackError
when a DASH URL is used.In more complex OSMF players, I've tried embedding the plugin both as a SWF and as a class, but receive the following error, which occurs when OSMF is unable to populate the
streamName
property of aNetStreamOptions
object before playback:RangeError: Error #1125: The index 0 is out of range 0. at org.osmf.net::NetStreamPlayTrait/playStateChangeStart()
Have you modified the version of OSMF you've included with SMP (I noted that there was a mention of it being "tidied up" in response to a previous issue)? Or are there additional configuration options that need to be set before using the plugin with a bespoke player?
All help and/or examples gratefully received!