ok I tryed
function videoStatus(){
trace(ns.time==duration)
}
it is always false even when video is finished.
2007/1/18, Helen Triolo <[EMAIL PROTECTED]>:
If you're using a NetStream object, then I believe you want ns.time, not
playheadTime.
Helen
natalia Vikhtinskaya wrote:
> Sorry, maybe I do something wrong but I can not get playheadTime
>
>
>
> var movie_flv:mx.controls.MediaDisplay;
>
>
>
> var nc:NetConnection=new NetConnection();
>
> nc.connect(null);
>
> var ns:NetStream=new NetStream(nc);
>
> ns.setBufferTime(3);
>
> ns.onStatus=function(info){
>
> if (info.code=="NetStream.Buffer.Full"){
>
> bufferClip._visible=false;
>
> }
>
> if (info.code=="NetStream.BufferEmpty"){
>
> bufferClip._visible=true;
>
> }
>
> if (info.code=="NetStream.Play.Stop"){ //this
> place
> not always works/ So when video finished
>
> ns.seek(0);
>
> }
>
>
>
> }
>
> theVideo.attachVideo(ns);
>
> ns.play("video/shoeshdmaster_vp6520.flv");
>
>
>
>
>
> var videoInterval=setInterval(videoStatus,10);
>
>
>
> ns["onMetaData"]=function(obj){
>
> duration=obj.duration;
>
> }
>
> function videoStatus(){
>
> trace(movie_flv.playheadTime) ///trace
undefined
>
> }
>
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com