· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Red5 Install/Demo Installer

Red5Install/DemoInstaller


* 2011.4.20
  • eclipse 는 당분간 잊는다.

* root/demo 는 어떻게 수행되나?
  • installer 와 oflademo 는 왜 webapp 밑에 설치되어야 하나?

* 다운로드 red5-0.9.1.tar.gz * http://red5.electroteque.org/dev/doc/html/BuildingRed5.html * http://red5.electroteque.org/dev/doc/html/Red5DemoApplications.html * /usr/share/red5/webapps/root/index.html
<li><a href="installer" target="_blank">Install</a> a ready-made application</li>^M
<li>Launch a <a href="demos">demo</a></li>^M
</ul>^M

* FLEX 의 source
  • flash/installer/src
  • FLEX 에 의해 webapps/installer/index.html 과 installer.swf 가 생성되지 않았을까?

* webapps/installer
tcheun@enk:~/red5-0.9.1/webapps/installer$ ls
AC_OETags.js  history     installer.swf
WEB-INF       index.html  playerProductInstall.swf

  • WEB-INF
    • red5-web.properties
webapp.contextPath=/installer^M
webapp.virtualHosts=localhost, localhost:5080^M
^M
# Used by the installer to locate the available wars^M
application.repository.url=http://red5.googlecode.com/svn/snapshots/
    • red5-web.xml
        <bean id="web.handler" class="org.red5.server.adapter.ApplicationAdapter" />^M
        ^M
        <bean id="installer.service" class="org.red5.server.service.Installer">^M
                <property name="applicationRepositoryUrl" value="${application.repository.url}" />^M
        </bean>
    • web.xml
        <welcome-file-list>^M
                <welcome-file>index.html</welcome-file>^M
        </welcome-file-list>^M

  • index.html
    • Flex 에 의해 생성된 html 인 듯함.
    • script AC_OETags.js
      • flash player version detection
      • function define
        • function ControlVersion()
        • function GetSwfVer()
        • function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
        • function AC_AddExtension(src, ext)
        • function AC_Generateobj(objAttrs, params, embedAttrs)
        • function AC_FL_RunContent()
        • function AC_GetArgs(args, ext, srcParamName, classid, mimeType)
    • 위의 function 을 사용하는 부분은 comment 처리되어 있음

    • script history/history.js
      • 공부가 필요함
      • flex 에서 필요로 하는 것

    • install.swf 를 다운로드 to client 의 flash player

  • /home/tcheun/Download/red5_demo/flash/installer/src
    • Item.as ProgressWindow.mxml assets functions.as installer.mxml
    • installer.mxml
      • click="install()"
    • functions.as
      • nc=new NetConnection();
      • nc.connect('rtmp://' + hostString + '/installer', null);
      • public function install():

public function install():void {^M
    if (selectedFilename != null) {^M
^M
        // pop up the dialog^M
^M
        progressWindow=PopUpManager.createPopUp(DisplayObject(Application.application), ProgressWindow, true);^M
        PopUpManager.centerPopUp(progressWindow)^M
        ProgressWindow(progressWindow).selectedFilename=selectedFilename^M
^M
        // request actual installation^M
^M
        nc.call("installer.install", null, selectedFilename);^M
    }^M
}^M

  • /home/tcheun/Download/red5.svn/src/org/red5/server/service
    • Installer.java
      • public boolean install(String applicationWarName)

publisher


* 2011.4.22
  • red5demo/flash/publisher/main.xml
xmlns:control="org.red5.samples.publisher.control.*"
                                xmlns:business="org.red5.samples.publisher.business.*"
                                xmlns:view="org.red5.samples.publisher.view.*"
                            paddingLeft="10" paddingRight="10" paddingBottom="10" paddingTop="10"
  • <business:Services/>
    • org/red5/samples/publisher/business/Services.mxml
  • <control:DashboardController/>
    • org/red5/samples/publisher/control/DashboardController.as
  • <view:Publisher/>
    • red5/samples/publisher/view/Publisher.mxml

  • red5demo/flash/classes/org/red5/samples/publisher

* edit Downloads/red5-example/red5-client/flex.properties

red5 server service

demos


* red5-examples
  • LocalApp admin dump loadtest oflaDemo
  • RemoteApp build.xml echo messageRecorder test
  • SOSample bwcheck fitcDemo midiDemo tutorial

* not in installer
  • LocalApp
  • RemoteApp
  • admin
  • test
  • tutorial

* not in red5-example
  • audiotranscoder
  • videotranscoder

* oflaDemo

* midiDemo

* echo

* dump

* bwcheck

* fitcDemo

* messageRecorder

* SOSample

* loadtest

* audiotranscoder

* videotranscoder

Flex projext


* Flex 를 이용하여 client 라는 project 를 생성하면 bin-debug 디렉토리에 다음의 파일들이 생성된다.
  • history 디렉토리
    • history.css
    • history.js
    • historyFrame.html
  • AC_OETags.js
  • client.html
  • client.swf
  • playerProductInstall.swf



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-12-08 23:00:40
Processing time 0.0107 sec