Hi
I'm compiled osmf 1.5 player - OSMFPlayer project for http streaming, using chromeLlibrary and OSMF.swc. I generated OSMFPlayer.swf without any errors, but when I'm trying to use this file I get a lot of errors with
VerifyError: Error #1014: Class org.osmf.media::MediaFactory could not be found.
VerifyError: Error #1014: Class ILayoutTarget could not be found.
VerifyError: Error #1014: Class org.osmf.layout::LayoutTargetSprite could not be found.
etc..
Can anyone please explain anything I need to do at compile time to get these errors fixed.
Thanks
--
Vishal
Vishal,
You might be interested in using Strobe Media Playback, instead of the OSMFPlayer example, which is slightly outdated and might get deprecated/removed from the OSMF samples in future.
You can get the the Strobe Media Playback source code, with a preconfigured copy of the OSMF here https://sourceforge.net/projects/smp.adobe/files_beta/ .
Simply import both OSMF and StrobeMediaPlayback projects into your Flash Builder and start coding.
-Andrian
Using strobe project too, If I use compiled swf file it works fine, but If I compile the swc and swf files myself I see errors on runtime.
VerifyError: Error #1014: Class org.osmf.traits::LoaderBase could not be found.
VerifyError: Error #1014: Class ILayoutTarget could not be found.
I'm using flex sdk 4.1
flex builder 3
Removed osmf.swc from flex sdk path.
To compile these projects properly,
I modified .actionscriptProperties file to change min flash version to 10.1.0 from 9.0.28 for lib projects
For strobeplayer application project, I changed it in Properties > ActionScriptCompiler > HTML wrapper
Do I need to do anything else here to get it working.
--
Vishal
Hi again,
You are probably still referencing an older version of the osmf.swc, and not the OSMF project source code from the Strobe Media Playback download zip.
Are both OSMF and StrobeMediaPlayback projects imported in Flash Builder? Can you check that your Flex SDK does not reference an older version of the osmf.swc?
-Andrian
So, now I moved osmf.swc from the flex sdk libs folder itself.
Now when I try to build osmf project or strobe player project, I get this error:-
unable to open 'libs/osmf.swc'
So this means, it was using that osmf.swc file in flex 4.1 sdk.
But now when I'm building osmf.swc file myself from source, for what reason is it needed in flex-sdk folder? Any ideas?
How can I build my own osmf.swc and use that instead in the strobe player?
--
Vishal
North America
Europe, Middle East and Africa
Asia Pacific