Ok i know that this probably is getting ridicolous, i search in the older
mailing lists and everybody seems to getting this simple thing to work
pretty straightforward.......... i don't know but i simply did not see the
stream, although it seems to working without any java error.......
My java code is
public String publishAstream (String DaStream,String WhichStream){
IScope escopo= Red5.getConnectionLocal().getScope();
IServerStream serverStream =
StreamUtils.createServerStream(escopo,DaStream);
SimplePlayItem item = new SimplePlayItem();
item.setStart(0);
item.setName(WhichStream);
long length= item.getLength();
item.setLength(length);
serverStream.addItem(item);
serverStream.start();
return serverStream.getPublishedName();
}
i call it trough :
nc.call("publishAstream",new mostra,"test","fluffy_crash.flv");
and get the output with my expected stream name
and in the same method i call
in2_ns.play("teste",-1,-1,true)
where in2_ns is my netStream in the same netConnection , and -1,-1 is the
thing to play the stream to the start, until it stops it existence,
i tryed with
in2_ns.play("teste");
Still no sign of the stream.
My flv file is in the same directory of the application, and i'm running it
with ant.
Am i placing it in the wrong place or something alike?
>Hi Fabio,
>
>Don't worry no problem, I'm glad I could help. If you call your
>serverStream
>"live0" as in the example, then all flash client users who subscribe to
>this
>stream would simply use ns.play("live0") to subscribe to this stream. ns is
>NetStream object.
>
>On 4/3/07, F?bio Costa <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Jwamycha!
> > So there is any way of publishing a server-side stream with a givem
>stream
> > Name or i just have to invoke.
> > Thanks again man! you really helps me!
> > >The class you could use is IServerStream. When this user connects, you
> > >could
> > >probably create a live stream made up of flv files using serverStream
>as
> > >shown in the commented out code in oflaDemo's Application.java.
> > >Then invoke a method on all clients that are connected to begin playing
> > >this
> > >live stream by using:
> > >Serviceutils.invokeOnAllConnections(...). invokeOnAllConnections is a
> > >static
> > >method of the ServiceUtils class.
> >
> > >This way everyone will see the live pre-recorded flvs that this user
>has
> > >chosen
> > .On 4/2/07, F?bio Costa <[EMAIL PROTECTED]> wrote:
> > >>
> > >>Well people, i'm tryng to stream LIVE a bunch of pre-recorded flv it
> > works
> > >.> like this:
> > >> Some guy select the thing to see in his screen, and when he wants
>he
> > >>stream that, and all other people that are connected see the thing he
>is
> > >>streaming,
> > >> I know that in flash if i make publish with a pre-recorded flv, it
> > just
> > >>doen't stream.
> > >>With FMS2 there was a way that was playing the video in the .asc file.
> > If
> > >>i
> > >>do the same with Red5 it will stream the video?
> > >>If nothing gets to work i guess that i will use just an invoke method
> > with
> > >>all subscribed connections. Anyway there is some api or class that you
> > >>guys
> > >>would recomend to streaming live pre-recorded flv?
> > >>
> > >>Thanks in advance Fabio-Brazil
> > >
> >
> > _________________________________________________________________
> > Verificador de Seguran?a do Windows Live OneCare: combata j? v?rus e
> > outras
> > amea?as! http://onecare.live.com/site/pt-br/default.htm
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
>
>--
>C is forever.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
>http://osflash.org/pipermail/red5_osflash.org/attachments/20070403/9e5776f2/attachment-0001.htm
>
>------------------------------
>
>Message: 3
>Date: Tue, 03 Apr 2007 16:13:03 -0400
>From: Rinaldo DiGiorgio <[EMAIL PROTECTED]>
>Subject: [Red5] Tomcat 5 error
>To: [email protected]
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; format=flowed; charset=ISO-8859-1
>
>Hello,
>
> I am trying to run Red5 in TomCat 5 and I get the following error
>message.
>
>[ERROR] 1156 main:( org.red5.server.MainServlet.contextInitialized )
>org.springframework.beans.factory.BeanInitializationException: Could not
>load properties; nested exception is java.io.FileNotFoundException:
>class path resource [red5.properties] cannot be opened because it does
>not exist
>
> The red5 properties file is there in WEB-INF
>
>
>
>Rinaldo
>
>
>
>
>------------------------------
>
>Message: 4
>Date: Tue, 3 Apr 2007 21:19:06 -0300
>From: "Marcos Chaar" <[EMAIL PROTECTED]>
>Subject: [Red5] RED5 x Stereo
>To: [email protected]
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1
>
>Hi,
>
>Is possible use stereo in live audio streaming with RED5.
>
>Thanks,
>
>Marcos
>
>
>
>
>------------------------------
>
>Message: 5
>Date: Wed, 4 Apr 2007 10:24:49 +0800
>From: "maliqun.china" <[EMAIL PROTECTED]>
>Subject: [Red5] Invoke problem, help me please!
>To: "[email protected]" <[email protected]>
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="gb2312"
>
>Hi, everyone.
>
> I used red5 in my project, but I met a invoke problem. help me please.
>
> In my server side, the code is :
>
> 1. In the Application.java
> ChatUser _user0 = null;
> public boolean appConnect(IConnection conn, Object[] params){
> IServiceCapableConnection service = (IServiceCapableConnection)
>conn; ............
> // create the current user with name and the connectioin;
> _user0 = new ChatUser("name",service);
>
> };
>
> 2.In the ChatUser.java
> IServiceCapableConnection _cbService = null;
> public void someoneNotify()
> {
> if(_cbService != null)
> {
> _cbService .invoke("remoteSendMessage", new
>Object[]{"hello"});
> }
> }
> the problem is : when the client side(flash) has been closed, but
>the appDisconnect has not been processed, the invoke function would not
>return and the red5 come into dead status, that is ,no more client can
>connect the red5 server, why? please help me.
>
> I have thought two possible reason.
> 1.I should check the valid _cbService object before I called it, but
>how to do it?
> 2.I should get the IServiceCapableConnection object when I need use
>it, but not use the object stored in the ChatUser, but how to do it?
>
> more reasons or more ways please.
>
> thanks more.
>
>
>
>
>
>
>maliqun.china
>2007-04-04
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
>http://osflash.org/pipermail/red5_osflash.org/attachments/20070404/12eb8c4b/attachment-0001.htm
>
>------------------------------
>
>Message: 6
>Date: Wed, 4 Apr 2007 10:38:51 +0800
>From: "maliqun.china" <[EMAIL PROTECTED]>
>Subject: Re: [Red5] SimpleChat problem
>To: "[email protected]" <[email protected]>
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="gb2312"
>
>hi, I am working a chatroom now. I get the userlist as following:
>
>1.when a new user come in , the server should send the userlist to client
>by remote calling. and the newuser's userlist would be create.
>2.after then, every new one come in, the server should notify the old user
>someone come in, and the old user's userlist would be update
>3.like above, when someone leave the room the server should notify the old
>user and the uselist would be update.
>
>wish to help you.
>
>good luck
>
>
>
>
>maliqun.china
>2007-04-04
>
>
>
>???????? Rajib Nath
>?????????? 2007-03-26 20:42:15
>???????? [email protected]
>??????
>?????? [Red5] SimpleChat problem
>
>Hello
>I am using Red5 newly. I have made a modification for multi room chatting.
>But I am stucked with the problem of showing the user display list.
>
>Is there anybody to help me?
>
>Thanks in advance.
>
>Rajib
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
>http://osflash.org/pipermail/red5_osflash.org/attachments/20070404/d39d6e80/attachment.htm
>
>------------------------------
>
>_______________________________________________
>Red5 mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>End of Red5 Digest, Vol 20, Issue 14
>************************************
_________________________________________________________________
Verificador de Segurança do Windows Live OneCare: verifique já a segurança
do seu PC! http://onecare.live.com/site/pt-br/default.htm
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org