Comunidad de diseño web y desarrollo en internet online

flv se reproduce sin sonido

Citar            
MensajeEscrito el 27 Oct 2010 05:09 pm
Buenas a todos, he colocado el siguiente código en un mxml para cargar un .flv. El punto es que éste se reproduce perfectamente pero sin el respectivo audio. Podría alguien darme una mano al respecto?
Gracias de antemano.

aquí el código:


Código Flex :

<?xml version="1.0" encoding="utf-8"?>


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  width="700" height="500" layout="vertical" verticalAlign="top" backgroundColor="white" viewSourceURL="srcview/index.html">
   

   
   <mx:Script>
      <![CDATA[
         private function formatTime(item:Date):String {
            return dateFormatter.format(item);
         }
         private function videoDisplay_playheadUpdate():void {
            var pT:Number = videoDisplay.playheadTime || 0.1;
            var tT:Number = videoDisplay.totalTime;
            var pTimeMS:Date = new Date(pT * 1000);
            var tTimeMS:Date = new Date(tT * 1000);
            timeLabel.text = formatTime(pTimeMS) + " / " + formatTime(tTimeMS);
         }
         private function slider_thumbPress():void {
            videoDisplay.pause();
         }
         private function slider_thumbRelease():void {
            videoDisplay.playheadTime = slider.value;
            videoDisplay.play();
         }
         private function videoDisplay_ready():void {
            videoDisplay.visible = true;
            controlBar.visible = true;
         }
      ]]>
   </mx:Script>
   <mx:DateFormatter id="dateFormatter" formatString="NN:SS" />
   <mx:Panel title="{videoDisplay.source.split('/').pop()} ({videoDisplay.state})" horizontalAlign="center" verticalAlign="top" id="video">
      <mx:VideoDisplay id="videoDisplay" visible="false" width="90%" height="80%"
                   playheadUpdate="videoDisplay_playheadUpdate()"
                   ready="videoDisplay_ready()"
                   rewind="videoDisplay.play()"
                   volume="0.75"
                   source="assets/Port Antonio, Jamaica [www.keepvid.com].flv" />
      <mx:ControlBar id="controlBar" visible="false" horizontalAlign="center" verticalAlign="middle">
         <mx:Button id="play" name="play" label="Play" click="videoDisplay.play()"></mx:Button>
         <mx:Button id="pause" name="pause" label="Pause" click="videoDisplay.pause()"></mx:Button>
         <mx:HSlider id="slider" width="100%"
                  allowTrackClick="false"
                  invertThumbDirection="true"
                  liveDragging="false"
                  maximum="{videoDisplay.totalTime}"
                  minimum="0"
                  thumbPress="slider_thumbPress()"
                  thumbRelease="slider_thumbRelease()"
                  tickInterval="1"
                  value="{videoDisplay.playheadTime}" 
                  

                  
                  />
         <mx:Label id="timeLabel" textAlign="right" />
      </mx:ControlBar>
   </mx:Panel>

   
</mx:Application>

Por incubo

53 de clabLevel



 

firefox
Citar            
MensajeEscrito el 28 Oct 2010 06:09 pm
La primera pregunta es ¿sabes si el FLV tiene audio?

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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