FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » checking for audio playing ???
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: checking for audio playing ??? [message #183467 is a reply to message #183465] Sun, 27 October 2013 18:43 Go to previous messageGo to previous message
Richard Damon is currently offline  Richard Damon
Messages: 58
Registered: August 2011
Karma:
Member
On 10/27/13, 2:24 PM, richard wrote:
> On Sun, 27 Oct 2013 17:53:37 +0000 (UTC), Denis McMahon wrote:
>
>> On Sun, 27 Oct 2013 10:58:15 -0400, richard wrote:
>>
>>> Does php have any method of checking to determine if audio is playing or
>>> not?
>>
>> This is the sort of question which demonstrates that, although many
>> people have tried to explain the difference between server and client to
>> you on several occasions over many years, you still have no appreciation
>> whatsoever of the separation of functionality between the web server and
>> the web client.
>
> So then when an mp3 file is downloaded, is it downloaded entirely into the
> browser BEFORE the audio is played?
> Then why do we have buffering?
> The server almost has to know when any given mp3 file is being played.
>

Nope, the client will ask for the parts of the file that it needs,
normally downloading a bit before offering to start, and maybe
continuing to download all before the play button is pressed, so the
server can not tell from the download request if the file has actually
been played or not. The server only sees the download request, which
won't indicate if it is being played or not, and in fact it is possible
that the whole file will be downloaded before played, and at some latter
point play might be pressed, which will not send any signal back to the
server, unless you program the player (in flash/javascript/whatever) to
send you a message. The one thing that is fairly certain is that the
player will almost certainly NOT be written in PHP, as PHP is normally a
server side language, and few clients will understand it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: There is some confusion on my site I should clear up
Next Topic: accessing nested unknown unserialized objects
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 10:19:57 GMT 2024

Total time taken to generate the page: 0.04392 seconds