생활 속 지혜, SW/HW Tip 등 유용한 지식 정보를 공유하는 장소 입니다.
본 게시판의 열람 및 다운로드는 비회원도 가능하나 글쓰기 및 댓글은 로그인 사용자만 가능합니다.
JW Player의 워터마크제거, 스킨 배경 및 버튼색 변경 등을 하기 위해서는 컴파일러를 해야 합니다.
JW Player 제작자는 비록 유료 판매를 하기도 하지만, 모든 소스를 Source Code를 통해 공개합니다.
뿐만아니라 JW Player의 컴파일러 방법 또한 친절하게 가르쳐 줍니다.;;
이번 시간에는 제작자가 공개한 JW Player 컴파일러 방법에 대해 알아보도록 하겠습니다.
준비물 :
1. JW Player 최신버젼 다운 : http://developer.longtailvideo.com/trac/browser/trunk/fl5
2. Adobe Flex Builder 3
3. flex sdk 3.3.0 : http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
※ 다운받기
1. JW Player 5.2 : trunk_fl5-r1084.zip (2010.06.01)
2. Adobe Flex Builder 3 Trial Version : setup.exe
3. Flex SDK 3.3.0 : flex_sdk_3.3.0.4852.zip
방법 - 원본 보기
The JW Player is free for non-commerical use. To buy a license for commercial use, please visit
https://www.longtailvideo.com/players/order.
To build the JW Player, you will need the following software:
* Flex SDK 3.3: http://opensource.adobe.com/wiki/display/flexsdk/Downloads
* Ant 1.7.0: http://ant.apache.org/bindownload.cgi
* FlexUnit 4: http://opensource.adobe.com/wiki/display/flexunit/FlexUnit (for testing the player)
=== Compiling the Player With the Flex SDK and Ant ===
To compile with Flex and Ant, enter the following command:
ant -buildfile build\build.xml
If the build is successful, player.swf will appear in the "bin-release" folder.
=== Compiling the Player With Flex / Flash Builder ===
Alternately, if you're using Flex Builder or Flash Builder, you may use the following method to build the player:
1. Create a new Actionscript project (you can give it any name except "Player").
2. Under "Project Contents", select the checkout tree (the folder where this README file lives).
3. If using Flex Builder 3, click the "Next" button, then type "src" into the "Main Source Folder" field.
4. Click the "Finish" button
5. Right-click on your new project, and select "Properties"
6. Under the "ActionScript Compiler" tab, click the radio button that reads "Use a specific version", and make sure it reads "10.0.0" (the default in Flex Builder 3 is "9.0.124")
7. Click the "OK" button.
8. Alter your main application class to inherit from com.longtailvideo.jwplayer.player.Player (i.e. public class MyPlayer extends com.longtailvideo.jwplayer.player.Player { ... )
9. Under the "Project" menu, choose "Export Release Build".
10. The player will be compiled as bin-release/{Your Project Name}.swf.
=== Compiling the Player With Flash CS4 ===
1. Create a new FLA file in the "src" directory.
2. In the Properties menu, under "Publish", enter "com.longtailvideo.jwplayer.player.Player" in the Class field.
3. Open the "Preferences" menu, go to the Actionscript panel, then click the "Actionscript 3.0 settings" button. Enter the path to the Flex SDK in the "Flex SDK Path" field.
4. Open the Publish Settings dialog and click the "Settings" button next to the "Script" dropdown.
5. Click the "Library path" tab, and edit the entry "$(FlexSDK)/frameworks/libs/flex.swc" to read "$(FlexSDK)/frameworks/libs" (i.e. remove "flex.swc").
6. Publish the application.Step 01 : Adobe Flex Builder 3를 다운 받아 설치함
Step 02 : flex sdk 3.3.0를 다운 받아 압축을 푼 후 C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0에 복사를 해줌
Step 03 : JW Player 최신버젼 다운 받은 후 C:\Documents and Settings\User\My Documents\Flex Builder 3\flvpayer에 복사를 해줌
* 내문서\Flex Builder 3\원하는 폴더명 (단, Player라는 폴더명은 사용하지 않음)
Step 04 : Adobe Flex Builder를 실행 후 New project - ActionScript Project선택

Step 05 : 그림과 같이 Projet name을 적어주고, 아래의 Use Default location을 해제한 후 Browser로 Step 03에서 복사한 JW Player경로를 선택함

Step 06 : Configure Flex Sdks를 선택한 후 Step02에서 생성한 Flex3.3을 선택함 그리고 Next 버튼을 선택

Step 07 : Adobe Flex Builder 3일 경우 아래 그림과 같이 Main source folder는 src, Main application file은 flvpalyer.as로 되어있으며, Finish를 눌러줌

Step 08 : Flex Navigator 아래의 flvpayer 프로젝트에서 마우스 오른쪽 버튼을 누른 후 Properties를 선택함
그런 후 ActionScript Compiler - Require Flash Player version을 10.0.0으로 변경해줌 (Default 9.0.124)

Step 09 : 이제 코딩 창의 아래를 변경해줌
변경 전

변경 후
즉 아래와 같이 붉은 색글만 수정하면 됨
package {
import com.longtailvideo.jwplayer.player.Player;
public class flvplayer extends Player
{
public function flvplayer()
{
}
}
}
Step 10 : File → Export → Release Build를 하여 컴파일러를 함
Step 11 : C:\Documents and Settings\SCMTM\My Documents\Flex Builder 3\flvplayer\bin-release 폴더로 이동 하면, 그림과 같이 JW Player가 flvplayer.swf로 변경되어 보임을 알 수 있음

