  | |  | Urgent Help with FLV rewind functionnality | Urgent Help with FLV rewind functionnality 2004-02-25 - By gilles BERTRAND
Back Nothing works
could somebody tell me wy this doesn't work it goes forward all right but not rewind // a videoinstance named 'my_video' is placed in the clip 'videoHost' var connection_connection; var stream_stream; // hide video to check dimensions first playVideo = function () { connection_connection = new NetConnection(); // Opens a local connection through which you can play back video (FLV) files from an HTTP address or from the local file system. connection_connection.connect(null); stream_stream = new NetStream(connection_connection); // stream_stream.setBufferTime(3); myVideo.attachVideo(stream_stream); stream_stream.play("essai.flv"); stream_stream.onMetaData = function(obj) { trace(obj.duration); trace(obj.framerate); }; }; playVideo(); ff = function () { if (stream_stream.time<=0) { trace("ok"); } else { b = Math.round(stream_stream.time)-1; stream_stream.seek(b); } // stream_stream.pause(); };
rw.onPress = function() { a = setInterval(ff, 500); }; rw.onRelease = function() { clearInterval(a); }; seek.onPress = function() { stream_stream.seek(50); };
Gilles
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105246 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |