  | |  | flv rewind | flv rewind
2004-02-25 - By gilles BERTRAND
Back Could some body help me i 'm working on a small flv player for an
elarning app and i don 't understand why
this doesn 't seem to work
my_ns = new NetStream();
netConn = new NetConnection();
netConn.connect(null);
my_ns = new NetStream(netConn);
maVideo.attachVideo(my_ns);
my_ns.onMetaData = function(obj)
{
trace(obj.duration);
//trace(obj.videodatarate);
//trace(obj.audiodatarate);
fullLength = obj.duration;
};
my_ns.play( "essai.flv ");
function rewind()
{
my_ns.seek(my_ns.time-1);
}
rw.onPress = function()
{
rew_int = setInterval(rewind, 100);
};
rw.onRelease = function(){
clearInterval(rew_int);
}
it 'seems to stay at the same place
PS: Sorry for my pour e,glish i 'm from belgium (french);
BERTRAND 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:105162
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |