Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11404 > unrolled thread
| Started by | richard <noreply@example.com> |
|---|---|
| First post | 2013-10-12 10:33 -0400 |
| Last post | 2013-10-12 15:10 -0400 |
| Articles | 10 — 6 participants |
Back to article view | Back to comp.lang.php
counting the plays richard <noreply@example.com> - 2013-10-12 10:33 -0400
Re: counting the plays "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-10-12 16:23 +0000
Re: counting the plays richard <noreply@example.com> - 2013-10-12 12:47 -0400
Re: counting the plays "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-10-12 17:14 +0000
Re: counting the plays Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-12 17:50 +0000
Re: counting the plays Richard Damon <Richard@Damon-Family.org> - 2013-10-12 13:44 -0400
Re: counting the plays Norman Peelman <npeelman@cfl.rr.com> - 2013-10-12 13:58 -0400
Re: counting the plays richard <noreply@example.com> - 2013-10-12 14:29 -0400
Re: counting the plays Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-12 15:08 -0400
Re: counting the plays Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-12 15:10 -0400
| From | richard <noreply@example.com> |
|---|---|
| Date | 2013-10-12 10:33 -0400 |
| Subject | counting the plays |
| Message-ID | <3x87954pdzfu$.oryegyab2agu.dlg@40tude.net> |
I need to keep track of how many plays any tune gets. Like the way youtube does. But played, not just viewed. The counter gets added to when the play button is clicked. The player is flash based. Any way of doing this?
[toc] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2013-10-12 16:23 +0000 |
| Message-ID | <l3bt2v$8ag$1@dont-email.me> |
| In reply to | #11404 |
richard the sto0pid wrote: > I need to keep track of how many plays any tune gets. Like the way > youtube does. > But played, not just viewed. > The counter gets added to when the play button is clicked. > The player is flash based. > > Any way of doing this? i++ and increment your database. -- -bts -This space for rent, but the price is high
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2013-10-12 12:47 -0400 |
| Message-ID | <gw0em66zmb1a$.1dz7ioyfk9mw4.dlg@40tude.net> |
| In reply to | #11405 |
On Sat, 12 Oct 2013 16:23:59 +0000 (UTC), Beauregard T. Shagnasty wrote: > richard the sto0pid wrote: > >> I need to keep track of how many plays any tune gets. Like the way >> youtube does. >> But played, not just viewed. >> The counter gets added to when the play button is clicked. >> The player is flash based. >> >> Any way of doing this? > > i++ and increment your database. I know that much. I need the counter incremented ONLY when the play button is pressed. So how do you detect a flash element being activated? Beauregard=ctrl+alt+del and it keeps coming back.
[toc] | [prev] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2013-10-12 17:14 +0000 |
| Message-ID | <l3c025$oar$1@dont-email.me> |
| In reply to | #11406 |
richard the sto0pid wrote: > Beauregard T. Shagnasty wrote: >> richard the sto0pid wrote: >>> I need to keep track of how many plays any tune gets. Like the way >>> youtube does. Why? Are you going to run out of toes? >>> But played, not just viewed. >>> The counter gets added to when the play button is clicked. >>> The player is flash based. >>> >>> Any way of doing this? >> >> i++ and increment your database. > > I know that much. Unlikely. > Beauregard=ctrl+alt+del and it keeps coming back. Like a bad penny, eh? LOL -- -bts -This space for rent, but the price is high
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2013-10-12 17:50 +0000 |
| Message-ID | <l3c251$9ii$1@dont-email.me> |
| In reply to | #11406 |
On Sat, 12 Oct 2013 12:47:02 -0400, richard wrote: > So how do you detect a flash element being activated? Magic. Or _you_ re-write _your_ flash code to send a get to _your_ server when the play button is clicked. Note that how _you_ re-write _your_ flash code is completely 100% off topic here. So is magic. -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Richard Damon <Richard@Damon-Family.org> |
|---|---|
| Date | 2013-10-12 13:44 -0400 |
| Message-ID | <vUf6u.96624$4q1.93918@en-nntp-12.dc1.easynews.com> |
| In reply to | #11404 |
On 10/12/13 10:33 AM, richard wrote: > I need to keep track of how many plays any tune gets. > Like the way youtube does. > But played, not just viewed. > The counter gets added to when the play button is clicked. > The player is flash based. > > Any way of doing this? > Since the player is flash based, you would need to add something to the flash code to trigger the increment. The other option would be something on the server side checking the logs for actually serving the file. I suppose you could put a proxy page that the player accesses to get the file written in php to do the increment and then send the file (assuming it is served via http/https) but that would add a lot of overhead to your server, so I wouldn't suggest it.
[toc] | [prev] | [next] | [standalone]
| From | Norman Peelman <npeelman@cfl.rr.com> |
|---|---|
| Date | 2013-10-12 13:58 -0400 |
| Message-ID | <l3c2kh$8m3$1@dont-email.me> |
| In reply to | #11404 |
On 10/12/2013 10:33 AM, richard wrote: > I need to keep track of how many plays any tune gets. > Like the way youtube does. > But played, not just viewed. > The counter gets added to when the play button is clicked. > The player is flash based. > > Any way of doing this? > Question. Do you want this counter advanced if the listener clicks the pause/play button more than once. It may be easiest to update the count (stored in the database) when the user clicks the link to load the <IFRAME>. It will be just as accurate. -- Norman Registered Linux user #461062 -Have you been to www.php.net yet?-
[toc] | [prev] | [next] | [standalone]
| From | richard <noreply@example.com> |
|---|---|
| Date | 2013-10-12 14:29 -0400 |
| Message-ID | <1ft6f70yce7pi.1rno7fl0u7lvq.dlg@40tude.net> |
| In reply to | #11410 |
On Sat, 12 Oct 2013 13:58:39 -0400, Norman Peelman wrote: > On 10/12/2013 10:33 AM, richard wrote: >> I need to keep track of how many plays any tune gets. >> Like the way youtube does. >> But played, not just viewed. >> The counter gets added to when the play button is clicked. >> The player is flash based. >> >> Any way of doing this? >> > > Question. Do you want this counter advanced if the listener clicks > the pause/play button more than once. It may be easiest to update the > count (stored in the database) when the user clicks the link to load the > <IFRAME>. It will be just as accurate. That would be the way I would do it under normal circumstances. However, as this is generating a report for ASCAP, they want to know how many times each tune was played. As I will have other information with the song, just counting the iframe hits will not do.
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2013-10-12 15:08 -0400 |
| Message-ID | <s6h6u.69415$%L4.19428@fx09.iad> |
| In reply to | #11412 |
On Saturday 12 October 2013 14:29, in comp.lang.php, "richard" <noreply@example.com> wrote: > On Sat, 12 Oct 2013 13:58:39 -0400, Norman Peelman wrote: > >> On 10/12/2013 10:33 AM, richard wrote: >>> I need to keep track of how many plays any tune gets. >>> Like the way youtube does. >>> But played, not just viewed. >>> The counter gets added to when the play button is clicked. >>> The player is flash based. >>> >>> Any way of doing this? >>> >> >> Question. Do you want this counter advanced if the listener clicks >> the pause/play button more than once. It may be easiest to update the >> count (stored in the database) when the user clicks the link to load the >> <IFRAME>. It will be just as accurate. > > That would be the way I would do it under normal circumstances. > However, as this is generating a report for ASCAP, they want to know how > many times each tune was played. > As I will have other information with the song, just counting the iframe > hits will not do. OK, the bottom line, then, is that you can't do what you want to do UNLESS you either a) host the flash player itself, and modify the player to provide you with a "played" count, or b) host the video content itself, and determine the "played" count from your own access records. -- Lew Pitcher "In Skills, We Trust" PGP public key available upon request
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2013-10-12 15:10 -0400 |
| Message-ID | <G8h6u.153535$Xf2.109777@fx12.iad> |
| In reply to | #11412 |
On Saturday 12 October 2013 14:29, in comp.lang.php, "richard" <noreply@example.com> wrote: > On Sat, 12 Oct 2013 13:58:39 -0400, Norman Peelman wrote: > >> On 10/12/2013 10:33 AM, richard wrote: >>> I need to keep track of how many plays any tune gets. >>> Like the way youtube does. >>> But played, not just viewed. >>> The counter gets added to when the play button is clicked. >>> The player is flash based. >>> >>> Any way of doing this? >>> >> >> Question. Do you want this counter advanced if the listener clicks >> the pause/play button more than once. It may be easiest to update the >> count (stored in the database) when the user clicks the link to load the >> <IFRAME>. It will be just as accurate. > > That would be the way I would do it under normal circumstances. > However, as this is generating a report for ASCAP, they want to know how > many times each tune was played. Hmmmm... Aren't you just frontending Youtube videos? Wouldn't Youtube provide that information to ASCAP already? > As I will have other information with the song, just counting the iframe > hits will not do. -- Lew Pitcher "In Skills, We Trust" PGP public key available upon request
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web