Skip to main content
Known Participant
October 7, 2009
Question

play ads then flv video

  • October 7, 2009
  • 1 reply
  • 658 views

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 has been closed for replies.

    1 reply

    ghost31379
    Inspiring
    October 7, 2009

    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