0 Replies Latest reply on Nov 26, 2010 12:42 AM by Cluaran

    Flash Player external FLV no Video only Audio

    Cluaran

      hello everybody.. i made  a couple of years ago a simple player that plays an external flv video.

      during this time everything goes well.. but now i can't see videos i can only listen to the audio.

       

      this is my actionscript (vid is my flv file) but i think that is not this the problem ( i don't changed files or server ) can it depend by player v.10 ?

       

      var nc:NetConnection = new NetConnection();
      nc.connect(null);
      var ns:NetStream = new NetStream(nc);
      video.attachVideo(ns);
      ns.play("img/video/"+vid+"");

       

      // Audio calling
      this.attachAudio(ns);
      var streamSound:Sound = new Sound(this)
      streamSound.setVolume(100)

       


      // Buttons
      btnPlay.onPress = function() {
          ns.pause(false);
      };
      btnPause.onPress = function() {
          ns.pause(true);
      };
      btnClose.onPress = function() {
          ns.close();
      };
      btnVolUp.onPress = function() {
          streamSound.setVolume(100)
      };
      btnVolDw.onPress = function() {
          streamSound.setVolume(0)
      };

       

      Thanks, Mirko

      see example at http://www.pietrocarnaghi.com