|
Necesitamos una función en Action Script para controlar el volumen de una película flash que está desarrollada utilizando la biblioteca Aflax.
Tenemos un reproductor de videos que se desarrolló con la biblioteca Aflax [aflax.org], el reproductor ya está desarrollado en todas sus funciones, ahora lo único que se necesita es una función en ActionScript (o cualquier otra solución) que permita controlar el volumen del video.
Cualquier duda profavor pregunten antes de ofertar.
Saludos.
|
|
Ayuda
Información agregada
09/05/2008 10:15
|
vPlayer.timeClip = null; vPlayer.prototype.aflax = null; vPlayer.prototype.flash = null; vPlayer.prototype.video = null; vPlayer.prototype.paused = false;
function vPlayer(aflaxRef, cueCallback, loadCallback, file){ this.aflax = aflaxRef; this.flash = this.aflax.getFlash(); this.play(cueCallback, loadCallback, file); }
vPlayer.prototype.pause = function(){ this.paused = !this.paused; this.video.netStream.callFunction("pause", this.paused); }
vPlayer.prototype.stop = function(){ this.paused = true; this.video.netStream.callFunction("pause", this.paused); }
vPlayer.prototype.time = function(){ if(this.video.netStream == null) return 0; else return this.video.netStream.getTime(); }
vPlayer.prototype.play = function(cueCallback, loadCallback, file){ this.video = new AFLAX.VideoClip(this.aflax, null, file, cueCallback, loadCallback); }
var aflax = new AFLAX("lib/AFLAX/aflax.swf");
function go(){ loadVideo("http://www.aflax.org/examples/video3/springmtn.flv"); } function loadVideo(vv){ //v = new vPlayer(aflax, "", "onLoad","http://www.aflax.org/examples/video3/springmtn.flv"); v = new vPlayer(aflax, "", "onLoad",vv); //v.pause(); setInterval("ctiempo()",100); v.seek(0); } function onLoad(s){ if(AFLAX.VideoClip.GetStatusValue(s, "code") == AFLAX.VideoClip.NetStream_Play_Start){ v.video.set_width(436); v.video.set_height(340); } } function cambiar(){ v.stop(); loadVideo(""); } var minutos = "0"; var segundos = "00"; function ctiempo(){ document.getElementById('timeBar').style.width=((v.time()*100)/168)+"%"; minutos = parseInt(v.time()/60); segundos = parseInt(v.time()-(minutos*60)); document.getElementById('time').innerHTML=minutos+":"+segundos; }
|
|