<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailFormatvorlage18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=DE link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>ns.play() doesnt work proper with the start and length
parameters. When I make:</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> ns = new NetStream(nc);</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> videoContainer.attachVideo(ns);</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> ns.play(fName,50,5);</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>First of all, the start and length parameters are completely
ignored: It starts always at position 0 with -1 length.</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Second: ns.seek() doesn’t work anymore, when I
set start and length in ns.play()</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Do I something wrong there? </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>And don’t you think a server-side solution will
be more stable? </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>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?</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>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?</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Best regards & sorry for nerving,</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Yasar</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Ursprüngliche Nachricht-----<br>
<b><span style='font-weight:bold'>Von:</span></b> Red5-bounces@osflash.org
[mailto:Red5-bounces@osflash.org] <b><span style='font-weight:bold'>Im Auftrag
von </span></b>Steven Gong<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Montag, 26. Juni 2006
12:50<br>
<b><span style='font-weight:bold'>An:</span></b> Red5@osflash.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Red5] About
streaming "on demand"</span></font></p>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
35.4pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:35.4pt'><span class=gmailquote><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>On 6/26/06, <b><span
style='font-weight:bold'>Yasar Özdemir</span></b> <<a
href="mailto:oezdemir@pragmatik.ids-mannheim.de">oezdemir@pragmatik.ids-mannheim.de</a>>
wrote:</span></font></span></p>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
<br>
I am very new to red5 and Java. Anyhow, I found it easy to get into it.<br>
First of all, thank you all to making this job!!!<br>
<br>
<br>
My Background:<br>
I have a website, where users can upload their flv videos and share them <br>
with the community. So I need an "on demand"-server. The client
should be<br>
able to stream small preview pieces of large flv files by giving start and<br>
stop positions.<br>
<br>
<br>
Now my question:<br>
I used the oflaDemo for my purposes and made some modifications on it. The <br>
netStream works very well. When I call "onMetaData" in the flash
client,<br>
there returns some info like "duration" and "fps" and all.<br>
<br>
1. What does the netStream.play(filename) call on the server, because I <br>
haven't got any function for that in my application?<br>
2. Where is the procedure on the server that sends the metadata?<br>
3. And how can I call it from my java Server-Side-Application?<br>
4. Can you point me a direction, how I can change the streaming progress to <br>
start streaming at a specific time position and stop after a while? (Using<br>
the Metadata?)</span></font></p>
<div>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
The play() function takes actually four params. That is play(flvName, start,
length, flushPlaylist). The first param is mandatory and the rest are not. <br>
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".</span></font></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Maybe I am not skilled
enough to do that all, but I can learn it (when<br>
somebody shows me where I can start). For now I even don't know where the<br>
stream is exactly handled on the red5 and how I can change it...<br>
<br>
Thank you very very much for helping and for working open source!!!<br>
<br>
Regards,<br>
Jascha<br>
<br>
<br>
<br>
_______________________________________________<br>
Red5 mailing list<br>
<a href="mailto:Red5@osflash.org">Red5@osflash.org </a><br>
<a href="http://osflash.org/mailman/listinfo/red5_osflash.org">http://osflash.org/mailman/listinfo/red5_osflash.org</a></span></font></p>
</blockquote>
</div>
<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Best Regards<br>
Steven Gong </span></font></p>
</div>
</body>
</html>