|
HI all: I download the
code from url:”http://wiki.openlaszlo.org/Video” ;I am now user
test record demo to record a video fragment; and I want generate a new flv file
in server when I click the record button each time, so I change the test record
demo shows below: <canvas width="100%" height="80%"
debug="true"> <debug x="200"/> <include href=""> <include href=""> <include href=""> <include href=""> <rtmpconnection id="rtc"
src="" autoconnect="true"/> <simplelayout inset="10"
spacing="10"/> <rtmpstatus/> <text text="${rtc.status}"/> <view bgcolor="black" width="168"
height="138" > <resizestate name="resizer"/> <!-- url="" --> <video id="v" x="4"
y="4" type="rtmp"
width="${parent.width-8}" height="${parent.height-18}"> <camera
show="${gShow.value}"/> </video> </view> <text text="${'recording: ' +
v.stream.recordtime}"/> <text text="${'playtime: ' +
v.stream.playtime}"/> <text text="${'totaltime: ' +
v.stream.totaltime}"/> <checkbox id="gShow" text="show
camera"/> <view layout="axis:x; spacing:10"> <button text="record"> <method
event="onclick">
var nowtime = new Date();
var streamName = "video_"+nowtime.getHours()+"_"+nowtime.getMinutes()+"_"+nowtime.getSeconds();
//v.setAttribute('url',streamName);
Debug.write("---------------------"+streamName);
v.setUrl(streamName);
v.stream.record(); </method> </button> <button
text="stop"/> </view> <view layout="axis:x; spacing:10"> <button
text="play"/> <button
text="pause"/> </view> </canvas> When I click the
record button, the video stream is append to the old stream flv file, why? Can
you help me ,thks Maybe some days
later, I can show you our application use openlaszlo and red5 server ,J Best regards!! |
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
