Playing and Controlling MP3 and FLV audio/videos (live strteam)with javascript

751 Views Asked by At

Using JavaScript how can i control external FLV live audio/video (radio) stream.

I have URL say BBC Radio, which when entered in address bar of browser display its own FLV player.

I need to control this live stream to be play,pause,increase/decrease volume using JavaScript.

The JavaScript should be universal in the sense that, for any FLV player above functions are applicable.

Is it possible to do so using JS?

Please guide me.

FYI: I am using PHP,MYSQL and APACHE

1

There are 1 best solutions below

2
On

Much like an class exposes public methods to other parts of an application, a flash element must explicitly expose methods to JavaScript via the ExternalInterface API. See here, here and here.