php - streaming audio by samples from server in a local network -


excuse me, if question silly, i'm beginner @ web-developing. trying write codes php , javascript , can't find answer or example how solve problem.

the problem send audio samples (not file) server client , play audio on client.

i grateful help.

there several ways play audio in browser:

1) usual flash-plugin:

with flash can handle raw pcm samples , play them in case need @ least basic knowledge of flash api's , actionscript 3.

2) html5 video/audio api's (javascript), specifications these not finished yet:

with current api's cannot handle pcm directly without media container. google containers supported browsers, different browsers support different containers , different codecs.

3) other plugins windows media player:

maybe find, plugin suitable take in account, if plan stream sound large audience better go popular plugin flash.

summary:

sending pcm samples on network slower compressed audio, far in local network should not problem.

one solution is, wrap samples on server(with php), should choose media container accordingly client side choose.

or learn little bit of flash , make flash swf can play pcm samples.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -