· 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

ID
Password
Join
Men seldom show dimples to girls who have pimples.


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.0088 sec