[Red5] serverStream

Lenny Sorey lrsorey at gmail.com
Tue Oct 2 06:49:22 PDT 2007


Mike,

Are you saying you want Video on Demand or you want to position the videos
in the ServerStreaming mode?

Sorry, I am little confused by what you want to do.

Lenny


On 10/2/07, Mike Przygoda <mike.przygoda at winslo.de> wrote:
>
>  yes i play -1 --- now is function..
>
> but .. can i stream this file ?? (position-play by connect) --- this file
> play from start by connect
>
> ----- Original Message -----
> *From:* Daniel Rossi <spam at electroteque.org>
> *To:* red5 at osflash.org
>  *Sent:* Tuesday, October 02, 2007 3:26 PM
> *Subject:* Re: [Red5] serverStream
>
>
> Hi, play("live0", -1); ??
>
> i believe there is still bugs with  the platlist in particular it will
> play the last created playlist item first, and will only repeat that one.
>
>  On 02/10/2007, at 10:53 PM, Mike Przygoda wrote:
>
>  next prob,
>
> i have serverside this:
>
> **
>
> *if* (appScope == conn.getScope()) {
>     serverStream = StreamUtils.*createServerStream*(appScope, "live0");
>     SimplePlayItem item = *new* SimplePlayItem();
>     item.setName("on2_flash8_w_audio");
>     serverStream.addItem(item);
>     serverStream.start();
>     serverStream.setRepeat(*true*);
> }
>
> i connect with cs3 to stream  "live0"
>
> serveroutput is:
>
>      [java] [INFO] 2007-10-02 14:46:25,968 pool-3-thread-4:(
> org.red5.server.stream.ProviderService.getVODProviderFile )
> getVODProviderFile scope path:  name: on2_flash8_w_audio
>      [java] [INFO] 2007-10-02 14:46:25,968 pool-3-thread-4:(
> org.red5.server.stream.ProviderService.getStreamFile ) getStreamFile null
> check - factory: org.red5.io.StreamableFileFactory at 5539d8<org.red5.io.StreamableFileFactory at 5539d8>name:flv:on2_flash8_w_audio
>      [java] [INFO] 2007-10-02 14:46:25,968 pool-3-thread-4:(
> org.red5.io.StreamableFileFactory.getServices ) StreamableFileFactory get
> services
>      [java] [INFO] 2007-10-02 14:46:25,984 pool-3-thread-4:(
> org.red5.io.StreamableFileFactory.getService ) Get service for file:
> on2_flash8_w_audio.flv
>      [java] [INFO] 2007-10-02 14:46:25,984 pool-3-thread-4:(
> org.red5.io.StreamableFileFactory.getService ) Found service
>      [java] [WARN] 2007-10-02 14:46:26,125 pool-3-thread-7:(
> org.red5.server.net.rtmp.RTMPHandler.onPing ) Unhandled ping: Ping: 3, 0,
> 500, -1
>      [java] 00 03 00 00 00 00 00 00 01 F4
>      [java] [INFO] 2007-10-02 14:46:26,187 pool-3-thread-9:(
> org.red5.server.stream.ProviderService.getVODProviderFile )
> getVODProviderFile scope path:  name: live0
>      [java] [INFO] 2007-10-02 14:46:26,187 pool-3-thread-9:(
> org.red5.server.stream.ProviderService.getStreamFile ) getStreamFile null
> check - factory: org.red5.io.StreamableFileFactory at 5539d8<org.red5.io.StreamableFileFactory at 5539d8>name: flv:live0
>      [java] [INFO] 2007-10-02 14:46:26,187 pool-3-thread-9:(
> org.red5.io.StreamableFileFactory.getServices ) StreamableFileFactory get
> services
>
>
>
> flash trace say:
>
> Error #2044: NetStatusEvent unverarbeitet. level=error, code=
> NetStream.Play.StreamNotFound
>  at StreamTest/::connectStream()
>  at StreamTest/::onNetStatus()
>
> whats this for problem???
>
>
>
>
>
> ----- Original Message -----
> *From:* Mike Przygoda <mike.przygoda at winslo.de>
> *To:* red5 at osflash.org
> *Sent:* Tuesday, October 02, 2007 2:25 PM
> *Subject:* Re: [Red5] serverStream
>
>
> ok .. i have found the class path and add:
>
> **
>
> *import* org.red5.server.api.stream.support.*;
>
>
>
> ----- Original Message -----
> *From:* Mike Przygoda <mike.przygoda at winslo.de>
> *To:* red5 at osflash.org
> *Sent:* Tuesday, October 02, 2007 1:48 PM
> *Subject:* [Red5] serverStream
>
>
> Hello,
>
> i uncomment the serverStream on oflaDemo.
>
> if (appScope == conn.getScope()) {
>    serverStream = StreamUtils.createServerStream(appScope, "live0");
>    SimplePlayItem item = new SimplePlayItem();
>    item.setStart(0);
>    item.setLength(10000);
>    item.setName("on2_flash8_w_audio");
>    serverStream.addItem(item);
> //   item = new SimplePlayItem();
> //   item.setStart(20000);
> //   item.setLength(10000);
> //   item.setName("on2_flash8_w_audio");
> //   serverStream.addItem(item);
>    serverStream.start();
> //   try {
> //    serverStream.saveAs("aaa", false);
> //    serverStream.saveAs("bbb", false);
> //   } catch (Exception e) {}
>   }
>
> then i see this compile-Error:
>
>
>     [javac]
> C:\red5\webapps\oflaDemo\WEB-INF\src\org\red5\server\webapp\oflaDemo\Application.java:39:
> cannot find symbol
>     [javac] symbol  : variable StreamUtils
>     [javac] location: class org.red5.server.webapp.oflaDemo.Application
>     [javac]                     serverStream =
> StreamUtils.createServerStream(appScope, "live0");
>     [javac]                                    ^
>     [javac]
> C:\red5\webapps\oflaDemo\WEB-INF\src\org\red5\server\webapp\oflaDemo\Application.java:40:
> cannot find symbol
>     [javac] symbol  : class SimplePlayItem
>     [javac] location: class org.red5.server.webapp.oflaDemo.Application
>     [javac]                     SimplePlayItem item = new
> SimplePlayItem();
>     [javac]                     ^
>     [javac]
> C:\red5\webapps\oflaDemo\WEB-INF\src\org\red5\server\webapp\oflaDemo\Application.java:40:
> cannot find symbol
>     [javac] symbol  : class SimplePlayItem
>     [javac] location: class org.red5.server.webapp.oflaDemo.Application
>     [javac]                     SimplePlayItem item = new
> SimplePlayItem();
>     [javac]                                               ^
>     [javac] 3 errors
>
> BUILD FAILED
> C:\red5\build.xml:155: The following error occurred while executing this
> line:
> C:\red5\build.xml:249: Compile failed; see the compiler error output for
> details
>
> can i fixed this ?
>
>
>
>
>
>
> ------------------------------
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> ------------------------------
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071002/4e3daa3e/attachment-0001.html 


More information about the Red5 mailing list