Audio Counts

Dazed
Dazed
@dazed
11 years ago
1,022 posts
In JR4 we had a way to regenerate the counts if we thought they were off. Does that exist in JR5?
updated by @dazed: 11/18/14 05:53:02AM
michael
@michael
11 years ago
7,772 posts
The integrity check doesn't do it? Whats off?
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Hey Michael!

I have an artist who has been at 11 plays on a tune and I have streamed it and no change. So I am guessing it is across the board.

What is a play count? 10 seconds worth play, 30 seconds or the whole song?

I have tried all of the above yesterday and no updates. He has been at 11 plays for more than 2 days.

In JR4 when this happened we had a job that ran that would rerun the play counts stats and that usually fixed everything.

Any ideas?
brian
@brian
11 years ago
10,148 posts
Dazed:
Hey Michael!

I have an artist who has been at 11 plays on a tune and I have streamed it and no change. So I am guessing it is across the board.

I'm not aware of any issue with this - there is a clear jrCore_counter call in the stream_file view.

Quote:
What is a play count? 10 seconds worth play, 30 seconds or the whole song?

As soon as the stream is requested.

Quote:
I have tried all of the above yesterday and no updates. He has been at 11 plays for more than 2 days.

In JR4 when this happened we had a job that ran that would rerun the play counts stats and that usually fixed everything.

Any ideas?

Are you testing on an iPhone only? There's some code in the stream file to prevent duplicate counts - mobile Safari sends like 4 different requests to the stream_file view, but only ONE of those is the "real" request (missing HTTP_RANGE header) and that's the only one that is counted.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
I am actually testing with Mac and Win 8. I ran an integrity check and no updates.
brian
@brian
11 years ago
10,148 posts
Dazed:
I am actually testing with Mac and Win 8. I ran an integrity check and no updates.

The integrity check does not change counts, so that's not going to do anything. I will test here and see if I can see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks Brian. You have my login info if you need it.
brian
@brian
11 years ago
10,148 posts
Just tested here and I don't see any issues. Note that it is only going to count ONE stream per unique item_id, per listener, per day. You can check out the jr_jrcore_count_ip table to see the user_id and IP's that have already been counted.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
You are using a custom flash player from N8Flex - I am suspecting that it does not play the audio through Jamroom's stream_file view - I can't find anywhere in the source where the actual MP3 file is loaded - it looks like it is being loaded via a SWF file, so that player is doing something custom and will need to be fixed to properly increment play counters.

You'll want to contact N8Flex for support.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 10/11/14 10:08:16AM
Dazed
Dazed
@dazed
11 years ago
1,022 posts
ok not sure if that is it. The plays are coming from FB also as well as directly from JR audio play links and yet they are not incrementing. I can remove all of Nate's stuff (not happy with it anyway) and go back to JR core code and we will see what happens.

thanks again
brian
@brian
11 years ago
10,148 posts
Dazed:
ok not sure if that is it. The plays are coming from FB also as well as directly from JR audio play links and yet they are not incrementing. I can remove all of Nate's stuff (not happy with it anyway) and go back to JR core code and we will see what happens.

thanks again

Well if you can find out HOW the N8Flex player is actually loading the media file, let me know - I didn't see any where in your source where the media URL is loaded.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Will do but in my testing I need to know when the count is updated. Is there a job I run to update it or is it immediate?

What I meant was a small majority of plays are from the nate player. The rest are jr like newest songs, Fb player and other Jr links.
updated by @dazed: 10/11/14 11:04:06AM
brian
@brian
11 years ago
10,148 posts
There is no job to run - everything is automatic. When the stream_file view in the core gets a stream request, the play counter is updated IF the user meets the stream requirements (no play of that id in the last 24 hours).


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Brian I removed the override files several hours ago so it is all JR. I did plays immediately after on a few different browsers and no play counts updated on the artist page.

any ideas?
brian
@brian
11 years ago
10,148 posts
That really does not make sense. The incrementing function is actually very simple, and I'm not aware of any issues with it. Can you provide me a link to a JR Audio player on your site that you feel is not incrementing?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
http://www.mixposure.com/saturated/audio/18529/200-dollars - that has had a lot of FB plays and my testing was on it. Over the last 4 days it has had 2 plays appear and it has been played by many people.

Appreciate the help Brian
brian
@brian
11 years ago
10,148 posts
Dazed:
http://www.mixposure.com/saturated/audio/18529/200-dollars - that has had a lot of FB plays and my testing was on it. Over the last 4 days it has had 2 plays appear and it has been played by many people.

Appreciate the help Brian

One thing that is important to know is that I have no idea how Facebook "serves" the audio data up - they are likely doing caching on their end that will affect how media is played and counted. I can only control players that are directly playing on your site.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Just tested that audio file on your site, and it is incrementing correctly, so the root cause is likely that Facebook is caching the audio stream URL so it's not even hitting your site OR they are using a proxy so all play requests come from the same IP.

I don't see any issues with the JR counters though.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
ok that is weird because we have had multiple people testing it. For facebook could it be an issue with fb requiring ssl and my site is not using the ssl for the main url?
brian
@brian
11 years ago
10,148 posts
Dazed:
ok that is weird because we have had multiple people testing it. For facebook could it be an issue with fb requiring ssl and my site is not using the ssl for the main url?

I don't know - if the audio plays, then I would guess not. I do know for certain though that FB caches very aggressively, so I think it's a good bet they are caching the audio URL OR at least pushing it through a proxy, in which case it would not matter at all how many different people streamed it - it would all show as coming from the same IP.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
11 years ago
7,772 posts
Facebook always seams to have the base of anything being servered from a facebook location.

When you put up a link to a page, it shows an image from the page, but the actual link to the image points to somewhere like:

I think its probably to make sure the image (or in this case audio file) is there if the post went viral.