¡¤Äúµ±Ç°µÄλÖãºÊ×Ò³ > ¼¼Êõ½Ì³Ì > ²¥·ÅÆ÷½Ì³Ì >

[AS3]Ãâ·ÑµÄwebÊÓƵ²¥·ÅÆ÷flowPlayerÈçºÎ±àÒë(3)

ʱ¼ä:2013-12-30 09:42oschina.net
ÕâЩÌì×÷ÊÓƵÏîĿʱÓõ½ÁË¿ªÔ´µÄflowplayer,ÔÙÍøÉÏÏÂÁ˸öÃâ·Ñ°æ±¾£¬µ«ÊÇÓÐЩÏÞÖÆ£¬ÓÚÊÇgoogleÁËÒ»ÏÂflowplayerµÄÆƽâÎÄÕ£¬ÏÖ ·ÖÏí¸ø´ó¼Ò£¬ºÇºÇ£¬Ï£Íû´ó¼Ò¶àÌᱦ¹óÒâ¼û° £flowplayer ´ó¼ÒÓ¦¸ÃÊǺÜÊìϤµÄ°É£¬ËûÊǺÍj

ÕâЩÌì×÷ÊÓƵÏîĿʱÓõ½ÁË¿ªÔ´µÄflowplayer,ÔÙÍøÉÏÏÂÁ˸öÃâ·Ñ°æ±¾£¬µ«ÊÇÓÐЩÏÞÖÆ£¬ÓÚÊÇgoogleÁËÒ»ÏÂflowplayerµÄÆƽâÎÄÕ£¬ÏÖ ·ÖÏí¸ø´ó¼Ò£¬ºÇºÇ£¬Ï£Íû´ó¼Ò¶àÌᱦ¹óÒâ¼û°¡¡£flowplayer ´ó¼ÒÓ¦¸ÃÊǺÜÊìϤµÄ°É£¬ËûÊǺÍjw playerÆëÃûµÄÁíÒ»¿î²¥·ÅÆ÷£¬¹¦ÄÜÇ¿½çÃæ¼ò½à£¬×ÜÖ®ÊÇÒ»¿î·Ç³£²»´íµÄ¿ªÔ´µÄflvÍøÒ³²¥·ÅÆ÷£¬flowplaye °´ÕÕ3¸öÊÚȨ·¢²¼£¨Free£¬Commercial£¬Multi-Domain£©£¬µÚÒ»¸öÊÇÃâ·Ñ°æ£¬ºóÁ½¸öÊÚȨÊÇҪǮµÄ,Ãâ·Ñ°æµÄÏÞÖÆÖ÷ÒªÊÇÆô¶¯Ê±»áÓÐ FlowPlayerµÄLogoÔÚ×óϽǣ¬¹ý¼¸Ãë×Ô¶¯µ­³öÏûʧ£»»¹ÓоÍÊÇÈ«ÆÁºóÓÒÉϽÇÓиöºÜ´óµÄFlowPlayerµÄLogo£¬²»»áÏûʧ£»ÒÔ¼°²»ÄÜÓÃÓÚ ÉÌÒµÓÃ;¡£

×î½ü×Ô¼º½Óµ½Ò»¸öÏîÄ¿×öÒ»¸öСµÄÒôÀÖÍøÕ¾£¬ÐèÇóÉÏÐèÒª²¥·ÅÆ÷£¬¿àÓÚ×Ô¼ºflashѧµÄ²»ÊǺܺ㬾Ϳ´ÖÐÁË flowplayer£¬FlowPlayer²»ÊÇAdobe Flash×öµÄ¡£ËüµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚ´óÁ¿¿ªÔ´µÄµÚÈý·½¹¤¾ßÒÔ¼°Adobe×Ô¼ºµÄFlex SDK¡£Òò´Ë£¬ÎÒÃÇÒª±àÆƽâFlowPlayer£¬¾ÍÐèÒª°²×°ÕâЩ¶«Î÷¡£

»ú×Ó»·¾³ £º Java»·¾³£¨°²×°JDK£© ,   Apache-Ant for windows , Flex SDK , adobe flash

±¾»ú²âÊÔ»·¾³Îª:

jdk : C:\Java\jdk1.6.0_16

apach-ant : c:\apache-ant-1.7.1

flexsdk : c:\flex_sdk

FlowPlayer 3.1.3

ÅäÖû·¾³±äÁ¿°²×°£º ´´½¨»·¾³ANT_HOME±äÁ¿ ֵΪC:\apache-ant-1.7.1 , ´´½¨»·¾³±äÁ¿java_home ֵΪ C:\Java\jdk1.6.0_16 £¬ ´´½¨»·¾³±äÁ¿classpathֵΪ%java_home%\lib;%java_home%\lib\tools.jar

½âѹflowplayer 3.1.3 µ½c:Ï £¬È»ºó´ò¿ªÔ´´úÂëÖеÄbuild.propertiesÎļþ£¬ÐÞ¸Äflex3dirµÄ±äÁ¿Ö¸ÏòΪFlex SDKµÄ½âѹĿ¼¡£¡£mxmlc_bin£¬compc_bin£¬asdoc_binÕâÈý¸ö±äÁ¿µÄ×îºó²¹³äÉÏ.exeºó׺£¬Èç¹ûÄãÒªÐ޸IJ¥·ÅÖ¡ÂʵĻ°£¬ÏÂÃæ µÄframerateÒ²¿ÉÒÔÐ޸ġ£

¼ì²â»·¾³°²×°ÊÇ·ñÕýÈ·:  ´ú¿ªÃüÁîÌáʾ·û ÊäÈëjava -version Èç¹û³öÏÖ°æ±¾ºó£¬Ôò¿ÉÒÔ½øÐÐÏÂÃæ¾ßÌåµÄ±àÒë²Ù×÷£¬·´Ö®Çë×Ðϸ¼ì²é»·¾³±äÁ¿ÊÇ·ñÕýÈ·£¡

java»·¾³°²×°³É¹¦ºó£¬ÎÒÃÇ´ò¿ªflowplayerĿ¼ÖеÄbuild.xmlÐÞ¸Ä<property name=”version-status” value=”" />ÖеÄvalueÖµÉèÖÃΪ0¡£WindowsÖв»ÔÊÐí±äÁ¿Îª¿Õ£¬µ«LinuxÖÐÔÊÐí£¬ÕâÊǵÚÒ»¸ö¼æÈÝÐÔ´íÎó¡£ÕâÑùÐ޸ĺó»áÓ°Ïì×îºóÉú³ÉÎļþµÄÎļþ Ãû£¨×îºó¶àÁ˸ö-0£©£¬µ«Õâ²»ÊǺÜÖØÒª¶Ô°É¡£

ÕâÖ»ÊÇÍê³ÉÁ˱àÒë»·¾³µÄÅäÖã¬ÏÂÃæ½øÐÐÆƽ⡣
´ò¿ªsrc\actionscript-commercial\org\flowplayer\viewĿ¼ÏµÄLicenseKey.asÎÄ ¼þ£¬¿ÉÒÔ¿´µ½ÓÐÒ»¸öCONFIG::commercialVersion£¬»¹ÓÐÒ»¸öCONFIG::freeVersion¡£Õâ¾ÍÊÇÅжÏÊÇÃâ·Ñ°æ»¹ÊÇÉÌÒµ °æµÄ·½·¨ÁË¡£½«CONFIG::freeVersion{}ÖеĴúÂëÓëCONFIG::commercialVersion{}ÖеĴúÂëÌæ»»¾Í¿ÉÒÔÁË¡£ ÕâÑù¾Í°ÑÑéÖ¤´úÂë¸øÆÁ±ÎÁË¡£

È»ºó°Ñbuild.xml ÖеÄ<target name=”compile”>ËùÓÐÄÚÈÝɾ³ý£¬ÔÙ°ÑÎļþÖÐ<target name=”compile-commercial”>ÐÞ¸ÄΪ<target name=”compile”>£¬ÕâÑù±àÒë³öÀ´µÄ¾ÍÊÇÉÌÒµ°æµÄswfÎļþÁË¡£ÎÞLogo¡«
×îºó´ò¿ªÃüÁîÌáʾ·ûÊäÈë ant -buildfile  D:\flowplayer\build.xml (bulid.xmlÈ¡¾öÄã½âѹµÄ·¾¶) £¬ÕâÑù¾ÍÄܳɹ¦±àÒ룬Íê³ÉºóÎÒÃÇ¿ÉÒÔÔÚflowplayerµÄbuildĿ¼Öеõ½ÉÌÒµ°æµÄflowplayer.commercial.swf ÁË

µ«ÕâÖ»ÊÇÒ»¸ö²¥·ÅÆ÷£¬ÎÒÃÇ»¹ÐèÒªÒ»¸ö¿ØÖÆÌõ£¬ºÜ¼òµ¥£¬µ½¹Ù·½ÏÂÔØÃâ·Ñ°æµÄflowplayerÈ»ºó°Ñflowplayer.controls-3.1.3.swf ¿½±´¹ýÀ´¾Íok ÁË

µ½´Ë ¸÷λ¾Í¿ÉÒÔÓµÓÐ×Ô¼ºµÄÒ»¿î¸ßµµµÄflv²¥·ÅÆ÷ÁË

ÈÈÃÅÎÄÕÂÍƼö

ÇëÉÔºò...

±£ÀûÍþÊÓÔÆƽ̨-ÇáËÉʵÏֵ㲥ֱ²¥ÊÓƵӦÓÃ

¿á²¥ÔÆÊý¾Ýͳ¼Æ·ÖÎö¿çƽ̨²¥·ÅÆ÷