-
1. Re: how get use strobeMediaPlayBack.swc in flex?
HWAndrew Aug 27, 2010 1:39 PM (in response to HWAndrew)Below is the error information:
VerifyError: Error #1053: Illegal override of synthesizer in org.osmf.layout.LayoutMetadata.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.x\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:267]
at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.x\framework s\projects\framework\src\mx\managers\SystemManager.as:2460]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:488]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
-
2. Re: how get use strobeMediaPlayBack.swc in flex?
Andrian Cucu Aug 28, 2010 12:07 AM (in response to HWAndrew)Hi,
this thread should help you:
http://forums.adobe.com/thread/702338
You can find woking samples there.
-Andrian
-
3. Re: how get use strobeMediaPlayBack.swc in flex?
HWAndrew Aug 30, 2010 11:18 AM (in response to Andrian Cucu)Hi Andrian,
Thank you for your reply.
I follow the example you give in the link, using UIcomponent to hold the StrobeMediaPlayBack.
But still the VerifyError: Error #1053: Illegal override of synthesizer in org.osmf.layout.LayoutMetadata comes out.
I search google nad some posts tell that it's due to complying the component with different FLEX SDK.
http://www.flexer.info/2009/01/14/verifyerror-error-1053-illegal-override-of/
I download the OSMF.swc form osmf home page, and my flex complier is using the flex sdk 4.1.
Is it the problem? or any other issue that cause the error?
thank you
Andrew
-
4. Re: how get use strobeMediaPlayBack.swc in flex?
Andrian Cucu Aug 30, 2010 12:06 PM (in response to HWAndrew)Flex 4.0 has bundled an obsolete version of the OSMF, and you need to remove it manually from your project settings.
Check the release notes here http://opensource.adobe.com/wiki/display/osmf/Downloads (Using OSMF with Flex 4 SDK) if you run into troubles.
-
5. Re: how get use strobeMediaPlayBack.swc in flex?
HWAndrew Aug 30, 2010 1:43 PM (in response to Andrian Cucu)Hi Andrian,
I comply the OSMF.swc form source code and now the player works.
Thank you so much
andrew
-
6. Re: how get use strobeMediaPlayBack.swc in flex?
Celumbra1 Jan 25, 2011 9:40 AM (in response to Andrian Cucu)Hi Adrian,
I want to try to integrate Strobe into a Flex app. I read your previous thread, but cannot seem to download the examples. Are they posted somewhere new? Or has the newer version of Strobe changed?
Thanks.
-
7. Re: how get use strobeMediaPlayBack.swc in flex?
Andrian Cucu Jan 26, 2011 1:51 AM (in response to Celumbra1)Hello,
You can download the latest Strobe Media Playback source code and binaries from here: http://sourceforge.net/adobe/smp/home/
Let us know if this is what you were looking for.
-Andrian
-
8. Re: how get use strobeMediaPlayBack.swc in flex?
Celumbra1 Jan 26, 2011 9:22 AM (in response to Andrian Cucu)Hi Adrian,
I was looking for the sample code for integrating Strobe into Flex 4. You
posted links for sample code for integrating it into an Air application, but
those links seem to no longer function.
Thanks.
Robert
-
9. Re: how get use strobeMediaPlayBack.swc in flex?
Celumbra1 Jan 26, 2011 10:01 AM (in response to Andrian Cucu)Here are the links on that thread that I was trying to find. Thanks
http://smpfmp.appspot.com/SMPAir.air
Here is the zip with the source code of the project:
http://smpfmp.appspot.com/SMPAir.zip
Here is the mxml file: http://smpfmp.appspot.com/SMPAir.mxml
-
10. Re: how get use strobeMediaPlayBack.swc in flex?
Celumbra1 Feb 8, 2011 6:24 PM (in response to Celumbra1)Hi Adrian,
I've tried to integrate the StrobeMediaPlayback into Flex unsuccessfully following the thread here, but the compiler doesn't like the CONFIG::LOGGING properties. I get an error 1120 Access of undefined property LOGGING.
I tried commenting all of them out, but then recieved many new errors for basic properties.
I am not sure what I am doing wrong. I am using the StrobeMediaPlayback 1.5.1 (and also 1.5 in other experiments), downloaded from the Strobe downloads page. And I am referencing the src folder in the source path under the Flex Build Path option of the project properties menu. I am also referencing the OSMF.swc 1.5 in the build path. I am using the Flex 4.1 compiler and Flash Player 10.1.0. I set the logging flag on the compiler to false.
I am using the following MXML code, which is identical to your previous posts. Am I loading the correct versions?
Thanks for your help.
Robert
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete ="init(event)"
>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
protected function init(event:Event):void
{
_stage = systemManager.stage;
_stage.align = StageAlign.TOP_LEFT;
_parameters =
{
src:"http://osmf.org/dev/videos/cathy1_SD.mp4"
, controlBarMode:"floating"
, controlBarAutoHide: false
, autoPlay: true
, showVideoInfoOverlayOnStartUp: true
};
//var playerInstance:Object = new playerClass();
var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
playerInstance.initialize(_parameters, _stage, systemManager.loaderInfo, null);
var ui:UIComponent = new UIComponent();
ui.addChild(playerInstance as DisplayObject);
addElement(ui);
}
// Internals
//
private function onURLLoaderComplete(event:Event):void
{
var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
if (context.hasOwnProperty(ALLOW_LOAD_BYTES_CODE_EXECUTION)) {
context[ALLOW_LOAD_BYTES_CODE_EXECUTION] = true;
}
loader.loadBytes((ByteArray)(urlLoader.data), context);
}
private function instantiatePlayer(event:Event):void
{
var ui:UIComponent = new UIComponent();
if (ApplicationDomain.currentDomain.hasDefinition("StrobeMediaPlayback"))
{
var playerClass:Class = getDefinitionByName("StrobeMediaPlayback") as Class;
var playerInstance:Object = new playerClass();
playerInstance.initialize(_parameters, _stage);
ui.addChild(playerInstance as DisplayObject);
addElement(ui);
}
else
{
var errorText:TextField = new TextField();
errorText.width = _stage.stageWidth;
errorText.multiline = true;
errorText.htmlText = '<P ALIGN="CENTER"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Error loading Flash Media Playback components!</FONT></P>';
errorText.y = _stage.stageHeight / 2 - errorText.height / 2;
ui.addChild(errorText);
addElement(ui);
}
}
private var urlLoader:URLLoader;
private var urlRequest:URLRequest;
private var loader:Loader;
private var _stage:Stage;
private var _parameters:Object;
/* static */
private static const ALLOW_LOAD_BYTES_CODE_EXECUTION:String = "allowLoadBytesCodeExecution";
]]>
</fx:Script>
</s:Application> -
11. Re: how get use strobeMediaPlayBack.swc in flex?
Grauzone Feb 9, 2011 1:21 AM (in response to Celumbra1)Hi Celumbra,
check in your Properties under "Actionscript -Compiler" in "Additional Compiler Arguments" and try to input these line:
-define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true
than compile again...hope this helpsgreetz Grau
-
12. Re: how get use strobeMediaPlayBack.swc in flex?
Celumbra1 Feb 10, 2011 6:06 PM (in response to Grauzone)Hi Grau,
Thank you for your reply. It was very helpful. I was able to load into Flex
StrobeMediaPlayback 1.5, not 1.5.1.
I have an odd experience, however. When compiling the movie locally, using
an f4m file as the source, it selects and plays very well, selecting the
highest resolution and largest size. But when I serve the swf from the
remote web server, the system selects the lowest resolution, even though I
am using the same movies, same f4m manifest, and same FMS server. If I use
the setup.html that comes with SMP, served from the remote server, it
selects the highest resolution.
This leads me to think that there is some metric, other than bandwidth, that
is driving SMP to select the lowest resolution, and that is metric is
related to something going on in the Flex app. If this is true, can you
point me toward what that metric might be and how I might experiment with
it?
Thanks again for your assistance.
Robert
>
>
than compile again...hope this helps
>
If not try to import a new and use (if u unzipped the File that u have
downloaded) this Directory:
>
\osmf\src\player\StrobeMediaPlayback
>
>
>
if Not try to add
>
greetz Grau
>
-
13. Re: how get use strobeMediaPlayBack.swc in flex?
Rasool.Irfan Mar 17, 2011 12:40 AM (in response to Andrian Cucu)Hi,
I am new to this field.
I downloaded the Strobe Media Playback from osmf.og.
Then i imported the Strobe Media Plaback Source into Flash Builder 4( which is a trial version).
I then Deleted the OSMF.swc from the Flex4.1 of flash builder and then added a new OSMF.swc from the strobe media player source
via Project>Properties>ActionScript Build Path>Add SWC.
My current sdk is Flex 4.1
But after doing all configurations.
I am getting the Error
unknown configuration variable 'swf-version'
Project>Properties>ActionScript Compiler
here my Additional Compiler Arguments are:
"-swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true"
So please let me know how to fix it.
I am beginer and donot know much about it.
I will be waiting eagerly for your reply
Thanks And Regards
-
14. Re: how get use strobeMediaPlayBack.swc in flex?
Gelu Blanariu Mar 17, 2011 12:55 AM (in response to Rasool.Irfan)Hi,
I assume you are using OSMF 1.6 Sprint 2 drop. For now it requires the latest Flex SDK 4.5 for compiling. Please use the instructions that are provided here: http://blogs.adobe.com/osmf/2011/02/getting-started-with-stage-video-support-in-osmf-and-s trobe-media-playback.html .
Hope this helps,
Gelu


