Hi,
ns.play() doesnt work proper with the start and length
parameters. When I make:
ns = new NetStream(nc);
videoContainer.attachVideo(ns);
ns.play(fName,50,5);
First of all, the start and length parameters are completely
ignored: It starts always at position 0 with -1 length.
Second: ns.seek() doesn’t work anymore, when I
set start and length in ns.play()
Do I something wrong there?
And don’t you think a server-side solution will
be more stable?
I could call a class like ns.call(“cut”,videoname,start,length);
and the server will prepare the stream for me. Isn’t that possible?
And another feature-request: Is it possible to request
a jpg or another screenshot of the flv from the server? …and force the
browser to download the screenshot?
Best regards & sorry for nerving,
Yasar
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Steven Gong
Gesendet: Montag, 26. Juni 2006
12:50
An: [email protected]
Betreff: Re: [Red5] About
streaming "on demand"
On 6/26/06, Yasar Özdemir <[EMAIL PROTECTED]>
wrote:
Hi,
I am very new to red5 and Java. Anyhow, I found it easy to get into it.
First of all, thank you all to making this job!!!
My Background:
I have a website, where users can upload their flv videos and share them
with the community. So I need an "on demand"-server. The client
should be
able to stream small preview pieces of large flv files by giving start and
stop positions.
Now my question:
I used the oflaDemo for my purposes and made some modifications on it. The
netStream works very well. When I call "onMetaData" in the flash
client,
there returns some info like "duration" and "fps" and all.
1. What does the netStream.play(filename) call on the server, because I
haven't got any function for that in my application?
2. Where is the procedure on the server that sends the metadata?
3. And how can I call it from my java Server-Side-Application?
4. Can you point me a direction, how I can change the streaming progress to
start streaming at a specific time position and stop after a while? (Using
the Metadata?)
The play() function takes actually four params. That is play(flvName, start,
length, flushPlaylist). The first param is mandatory and the rest are not.
The default value for start is 0, length is -1 and flushPlaylist is true. So if
you want to play at a specific time with a specific length, just specify the
"start" and "length".
Maybe I am not skilled
enough to do that all, but I can learn it (when
somebody shows me where I can start). For now I even don't know where the
stream is exactly handled on the red5 and how I can change it...
Thank you very very much for helping and for working open source!!!
Regards,
Jascha
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
Best Regards
Steven Gong