Saturday, April 18, 2009

How to play mp3 on Linux

Linux gives us manything., mp3 support not one of them.

you have to google for getting info about how to configure mp3 support on Linux.

this link will show you how to configure mp3 support on Linux. Enjoy (if it works)

http://forums.fedoraforum.org/showthread.php?t=106220


Friday, September 14, 2007

Accessing FLVPlayback component from ActionScript

Initializing FLV Playback component

import mx.video.FLVPlayback;
var flvpl:FLVPlayback;
Stage.showMenu = false;
flvpl._visible=false;
flvpl.volume=0;
flvpl.contentPath="video_1.flv";

Accessing flvplayback components constraint to the cliplength.. inorder to achieve we gotta find the given cliplength at runtime...

Where given below x is a playhead time and we can find the cliplength by using


flvpl.totalTime()

Here the given 108.5 have been acquired from the totalTime() and operated for some purpose...
On seeing the code...


function check() {
x =Math.abs(flvpl.playheadTime);
if (x>=108.5) {
pl_agn._visible = true;
flvpl.stop();
}
}
setInterval(check,500);

The setInterval for checking for playhead on regular interval



pl_agn.onRelease = function() {
flvpl.playheadTime = 0;
flvpl.play();
stagecp.gotoAndPlay(2);
pl_agn._visible = false;
}