[Red5devs] rtmp streaming java client
Balage
dev at 1101.hu
Tue Mar 18 09:24:32 PDT 2008
Sorry, i using client.invoke for createStream, not the new
client.createStream method.. :)
B
On Tue, Mar 18, 2008 at 5:02 PM, Balage <dev at 1101.hu> wrote:
> Checked out, number of enhancements, great! :) I try this way, but in
> red5 log i found "pool-3-thread-9:(
> org.red5.server.stream.StreamService.publish ) publish caught
> Exception".
>
> File file = new File(FLV_FILE);
> FLVReader reader = new FLVReader(file);
>
> while (reader.hasMoreTags()) {
> ITag tag = reader.readTag();
> ByteBuffer frame = tag.getBody();
>
> VideoData video = new VideoData(frame);
>
> RTMPMessage videoMsg = new RTMPMessage();
> videoMsg.setBody(video);
>
> __client.publishStreamData(streamId, videoMsg);
> }
>
> (and i change RTMPClient line 367:
>
> old: Integer encoding = (Integer) connectionParams.get("objectEncoding");
> new: Integer encoding = ((Double)
> connectionParams.get("objectEncoding")).intValue();
>
> because it throws error.)
>
>
>
> On Tue, Mar 18, 2008 at 11:58 AM, Balage <dev at 1101.hu> wrote:
> > Thanks for the quick reply. I search the rtmpclient, flvreader class and
> > red5 sources too, there is no publishStreamData found (ver 0.7).
> >
> >
> > On Tue, Mar 18, 2008 at 11:24 AM, Steven Gong <steven.gong at gmail.com> wrote:
> >
> > > Currently you might need to use FLVReader to read from a FLV file to get
> > tags and push them to RTMPClient using publishStreamData.
> > >
> > >
> > >
> > >
> > >
> > > On Tue, Mar 18, 2008 at 6:16 PM, Balage <dev at 1101.hu> wrote:
> > >
> > > >
> > > >
> > > >
> > > > Hi
> > > >
> > > > I read some thread about this but all broken. I want to stream flv
> > content to red5 using a standalone java client.
> > > >
> > > > With RTMPClient connecting, and invoke createStream is ok, session id
> > return, publish ok, but how to stream flv content? The bundled
> > Red5\src\org\red5\samples\client\SimpleClient.java throws exception at
> > connectionOpened, conn is null. Please help!
> > > >
> > > > Thanks,
> > > > B
> > > >
> > > >
> > > > _______________________________________________
> > > > Red5devs mailing list
> > > > Red5devs at osflash.org
> > > > http://osflash.org/mailman/listinfo/red5devs_osflash.org
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Best Regards
> > > Steven Gong
> > >
> > > InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com
> > >
> > > Red5 Developer: http://osflash.org/red5,
> > http://jira.red5.org/confluence/display/~steven/Home
> > >
> > > Javaflash Project Founder and Maintainer: http://osflash.org/javaflash
> > >
> > > Modesty is an overrated quality in men of no great accomplishment. --
> > Ricky Jay
> > > _______________________________________________
> > > Red5devs mailing list
> > > Red5devs at osflash.org
> > > http://osflash.org/mailman/listinfo/red5devs_osflash.org
> > >
> > >
> >
> >
>
More information about the Red5devs
mailing list