Comunidad de diseño web y desarrollo en internet online

problema de flv en firefox y safari

Citar            
MensajeEscrito el 28 Oct 2008 05:06 pm
Hola estoy usando el siguiente reproductor para unos videos flv, al testear la peli desde flash funciona bien al igual que en IE, pero cuando lo veo a traves de Firefox y de Safari efectivamente veo el swf pero no se carga el flv, ya actualice mis navegadores con la última versión de flash player y tampoco anda, si alguien sabe que puede pasar... Gracias

Código :

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
   trace(info.code);
   if(info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
   }
   if(info.code == "NetStream.Buffer.Empty") {
      bufferClip._visible = true;
   }
   if(info.code == "NetStream.Play.Stop") {
      ns.seek(0);
   }
}

ns.play("vids_char_design/acid manthle.flv");

playButton.onRelease = function() {
   ns.pause();
}

rewindButton.onRelease = function() {
   ns.seek(0);
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
   duration = obj.duration;
}

function videoStatus() {
   amountLoaded = ns.bytesLoaded / ns.bytesTotal;
   loader_mc.loadbar_mc._width = amountLoaded * 350;
   loader_mc.scrub._x = ns.time / duration * 350;
}

var scrubInterval;

loader_mc.scrub.onPress = function() {
   clearInterval(videoInterval);
   scrubInterval = setInterval(scrubit,10);
   this.startDrag(false,0,this._y,350,this._y);
}

loader_mc.scrub.onRelease = loader_mc.scrub.onReleaseOutside = function() {
   clearInterval(scrubInterval);
   videoInterval = setInterval(videoStatus,100);
   this.stopDrag();
}

function scrubit() {
   ns.seek(Math.floor((loader_mc.scrub._x/350)*duration));
}

var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;

var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);
theMenu.customItems[0] = item1;

var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);
theMenu.customItems[1] = item2;

var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);
theMenu.customItems[2] = item3;

var item4:ContextMenuItem = new ContextMenuItem("© 2008",trace,true);
theMenu.customItems[3] = item4;

function pauseIt() {
   ns.pause();
}

function stopIt() {
   ns.seek(0);
   ns.pause();
}

function restartIt() {
   ns.seek(0);
}

_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

so.setVolume(100);

mute.onRollOver = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("onOver");
   }
   else {
      this.gotoAndStop("muteOver");
   }
}

mute.onRollOut = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("on");
   }
   else {
      this.gotoAndStop("mute");
   }
}

mute.onRelease = function() {
   if(so.getVolume()== 100) {
      so.setVolume(0);
      this.gotoAndStop("muteOver");
   }
   else {
      so.setVolume(100);
      this.gotoAndStop("onOver");
   }
}

Por j1278

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 03 Nov 2008 06:53 pm
Probaste también una ruta absoluta a tu servidor?
Insertaste el SWF en el html con SWFObject?

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox
Citar            
MensajeEscrito el 03 Nov 2008 07:07 pm
... en el servidor funciona, pero despues de quitarle el script que pone por defecto Dreamweaver CS3 que hace desaparecer el marco de seguridad de IE para los controles active X, el swf lo inserte por ese programa en modo de diseño...creo que lo deja como swfObject...

Por j1278

5 de clabLevel



 

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.