Skip to main content
Known Participant
Oct 7, 2009 2:21 PM UTC
Question

play ads then flv video

My application is samaatvlive.com

in which right side video list when user click on specific video then first play ad then flv video.

it is custom player.

please guide me through any tutorials or sample code.

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

    1 reply

    ghost31379
    Inspiring
    Oct 7, 2009 8:12 PM UTC

    hrmmmm dont know of any tutorials off hand but if its a custom player......just create a play function that tests to see if ad video played...and if it did play movie...or stream.......something like this below

    var adPlayed:boolean = false;

    function playStream():void

    {

         if(adPlayed){

              stream.play("thevideo");

              adPlayed = false;

              }

         else{

              stream.play("theAd");

              adPlayed = true;

              }

    }

    thelegendaryghost

    Translate