Skip to main content
Participant
May 22, 2006
Question

Looping video with embed

  • May 22, 2006
  • 1 reply
  • 289 views
How do I loop a video to play continuously without embedding it? Can I do this using Media Components linked to an external video? Didn't see any settings in components properties.

Thanks!
    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Hasan Otuome
    Participating Frequently
    May 25, 2006
    You can try using the NetStream's onStatus event handler like...

    //ns is your NetStream instance name
    ns.onStatus = function(info : Object){
    if(info.code == "NetStream.Play.Stop"){
    ns.seek(0); //start over
    }
    }

    That string says that the video has finished so once it has you can decide to do something else, in this case "play it again". HTH...