생활 속 지혜, SW/HW Tip 등 유용한 지식 정보를 공유하는 장소 입니다.
본 게시판의 열람 및 다운로드는 비회원도 가능하나 글쓰기 및 댓글은 로그인 사용자만 가능합니다.

JW Player 편집하기 01 (컴파일 하기)

조회 수 906 추천 수 0 2010.06.01 01:16:18

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선택 

JWPlayer Modified 01.jpg

 

 

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

JWPlayer Modified 02.jpg

 

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

JWPlayer Modified 03.jpg

 

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

JWPlayer Modified 04.jpg

 

Step 08 :  Flex Navigator 아래의 flvpayer 프로젝트에서 마우스 오른쪽 버튼을 누른 후 Properties를 선택함

               그런 후 ActionScript Compiler - Require Flash Player version을 10.0.0으로 변경해줌 (Default 9.0.124)

 

JWPlayer Modified 06.jpg

 

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

 변경 전

JWPlayer Modified 07.jpg

 

변경 후

JWPlayer Modified 08.jpg


 

즉 아래와 같이 붉은 색글만 수정하면 됨

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로 변경되어 보임을 알 수 있음

JWPlayer Modified 09.jpg

List of Articles
번호 제목 글쓴이 날짜 조회 수
19 MS Office 2007 Muilt View (2 monitors more) file 원잇 2010-06-21 345
18 홈페이지 (블로그)에 MSN 메신저 설치하기 imagefile SCM 2010-06-17 341
17 무설치 Input Director 만들기 imagefile 네오랑 2010-06-03 543
16 JW Player 워터마크 삭제 및 버튼, 배경 색깔 변경 imagefile SCM 2010-06-01 682
» JW Player 편집하기 01 (컴파일 하기) imagefile SCM 2010-06-01 906
14 사이트 접속 시 domain.com/xe 에서 xe 없애기 imagefile SCM 2010-05-25 445
13 Using Google Calendar on XE (구글 캘린더를 XE에 사용하기) imagefile SCM 2010-05-25 407
12 apache2 access log 분할 관리 하기 imagefile SCM 2010-05-25 402
11 Apache Error : winnt_accept: Asynchronous AcceptEx failed. SCM 2010-05-24 377
10 Apache Error : unable to include potential exec "include/top.html" SCM 2010-05-24 370
9 Textyle 블로그 메인 주소를 blog.domain.com 로 설정하기 imagefile SCM 2010-05-18 425
8 원격 데스크톱 연결 끊김 (Windows XP 이상) imagefile SCM 2010-05-18 635
7 DNSEver를 이용한 2차 도메인 일괄 셋팅 방법(바로 적용하기) imagefile SCM 2010-05-18 360
6 XE 메일 인증 시 ID/PW 정보 없이 빈 페이지만 올 경우 imagefile SCM 2010-05-15 402
5 Fake sendmail with ssl gmail for windows XP & XE (xpressengine) file SCM 2010-05-15 782
4 Apache2 openssl on Winows XP (https 접속) imagefile SCM 2010-05-15 477
3 XE에서 SMTP 비밀번호 찾기 등의 메일 인증 (윈도우용 서버) file [1] SCM 2010-05-12 632
2 오피스(MS Office) "현재 사용자용으로 설치되지 않았습니다." 해결 방법 imagefile 네오랑 2010-05-01 733
1 네트워크 부팅으로 윈도우 7 (windows 7) 설치하기 imagefile 네오랑 2010-04-30 1220



XE Login