miércoles, 4 de junio de 2008

recoger titulo cancion por shoutcast

Estimado:

El mar, 03-06-2008 a las 13:14 -0700, maxonico escribió:

> Hola amigos, me gustaria saber si es posible obtener el titulo de la
> cancion que se esta reproduciendo por shoutcast a traves de Flex 3, el
> codigo que tengo es simple:

> var song:SoundChannel;
> var request:URLRequest = new URLRequest("http://miradio:8000");
> var soundFactory:Sound = new Sound();
> soundFactory.addEventListener(Event.ID3, id3Handler); /*este evento no
> se dispara nunca*/

> soundFactory.load(request);
> song = soundFactory.play();

Existe una libreria llamada ID3Reader e ID3Stream de Fusiox que utilizo
en mi reproductor FlexMediaPlayer, la libreria antes nombrada esta en:
http://code.google.com/p/flexmediaplayer/source/browse/trunk/src/Flex...
http://code.google.com/p/flexmediaplayer/source/browse/trunk/src/Flex...

Y como utilizarla:
http://code.google.com/p/flexmediaplayer/source/browse/trunk/src/Flex...

Atte.
Andrés Iván Villagrán Placencia 
Teléfono: 95656625
Villagrán & Quiroz
Servicios Informáticos
http://www.villagranquiroz.cl
Concepción, Chile

Foro y descargas de api de Excel en java

Aqui esta el foro de soporte para la api de excel en java jxl

http://support.teamdev.com/community/java_platform_integration_solutions/jexcel/jexcel_api

y el link para descargar las versiones:

http://andykhan.com/jexcelapi/download.html

Generando Graficos en excel desde java

Excel charts with JExcel?

Here for someone's benefit is a working example of creating an Excel chart on a worksheet:


private void buildGraph()
{
try {
worksheet.getOleMessageLoop().doInvokeAndWait(new Runnable()
{
public void run()
{
createChart(worksheet);
}
});

} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

public static void createChart(Worksheet worksheet)
{
_Worksheet ws = worksheet.getPeer();
IUnknown disp = ws.chartObjects(Variant.createUnspecifiedParameter(),new Int32(0));
ChartObjects objects = new ChartObjectsImpl(disp);

DoubleFloat left = new DoubleFloat(500);
DoubleFloat top = new DoubleFloat(100);
DoubleFloat width = new DoubleFloat(300);
DoubleFloat height = new DoubleFloat(300);

ChartObject chartObject = objects.add(left, top,width, height);
chartObject.setName(new BStr("normalDistChart"));

_Chart chart = chartObject.getChart();

com.jniwrapper.win32.excel.Range valuesRange = ws.getRange(new Variant("distributionRange"),Variant.createUnspecifiedParameter() );

chart.setSourceData(valuesRange, new Variant(2));
chart.setChartType(new XlChartType(4));

chart.setHasLegend(new Int32(0), new VariantBool(true));

chart.getLegend(new Int32(0)).setPosition(new XlLegendPosition(XlLegendPosition.xlLegendPositionBottom));

chart.setHasTitle(new Int32(0), new VariantBool(true));
chart.getChartTitle(new Int32(0)).setText(new BStr("Normal Distribution Demo"));

Series series = new SeriesImpl(chart.seriesCollection(new Variant(1), new Int32(0)));
series.setName(new BStr("Cumulative"));

series = new SeriesImpl(chart.seriesCollection(new Variant(2), new Int32(0)));
series.setName(new BStr("NonCumulative"));

}

Fte: http://support.teamdev.com/thread/2141?tstart=0

martes, 3 de junio de 2008

Blog de Cairngorm

Cairngorm, basado en el modelo vista controlador permite estructurar nuestra aplicacion Flex.

El siguiente blog es bastante interesante para comenzar.

http://cairngormdocs.org/

y este es un esquema de funcionamiento con codigo:

http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf