I'm using flex sdk 4.1
You probably need to remove the reference to the older osmf.swc from within the Flex SDK.
select File >
Properties > Flex Build Path > Library path, select osmf.swc under Flex 4.1 SDK on the Library
Path panel, and click the Remove button.
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.
I tried removing osmf.swc, but that didn't help.
Trying out strobe link you sent now.
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.VerifyError: Error #1014: Class org.osmf.layout::LayoutTargetSprite could not be found.What exactly do these error mean?--Vishal
Tried using prebuilt osmf.swc file too, which came with the project, but I still see these errors.
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.
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?
Ahh, ok.. i can see that you use Flash Builder 3
You can try to create new project files, instead of importing the project files created by Flash Builder 4. Simply create new projects and copy the source code (without the FB project definitions).
Just a thought...
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?
Strobe project worked smoothly with flash builder 4. Seems like issue was with using flex builder 3.
In the compile settings, set CONFIG::FLASH_10_1 = false
Hope it helps
I had the same issue and removing old osmf.swc from the project Build Path worked for me- thanks.