如何跟踪来自服务器的音频文件的播放次数?

时间:2021-02-07 15:22:02

I have audio files (.mp3 and .wav format) saved on my server. They're normally supposed to be played through a webpage and I can track how often that page is opened.

我的服务器上保存了音频文件(.mp3和.wav格式)。它们通常应该通过网页播放,我可以跟踪该页面的打开频率。

But people can now refer directly to that sound file's link on my server and play it. How do I track the number of times these audio files are played?

但是人们现在可以直接参考我服务器上的声音文件链接并播放它。如何跟踪播放这些音频文件的次数?

An example: Normally user access the recording through this page, https://namedrop.io/keshavmalani But now a person may choose to integrate their NameDrop recording into something else using the direct recording link: https://namedrop.io/profile/audio/km.mp3 and ideally I want to be able to track it.

例如:通常用户通过此页面访问录制内容,https://namedrop.io/keshavmalani但现在有人可以选择使用直接录制链接将其NameDrop录制内容集成到其他内容中:https://namedrop.io/profile /audio/km.mp3,理想情况下我希望能够跟踪它。

I don't have a redirect to the audio file setup. Recommendation on how I would implement this without causing slowdown? I'm a beginner - intermediate coder.

我没有重定向到音频文件设置。关于如何在不导致减速的情况下实施此建议的建议?我是初学者 - 中级编码员。

1 个解决方案

#1


0  

Answer is here: How do I track file downloads

答案在这里:我如何跟踪文件下载

By: @w-ll (https://*.com/users/146637/w-ll)

通过:@ w-ll(https://*.com/users/146637/w-ll)

Thanks to @DanielProtopopov for pointing it out

感谢@DanielProtopopov指出它

#1


0  

Answer is here: How do I track file downloads

答案在这里:我如何跟踪文件下载

By: @w-ll (https://*.com/users/146637/w-ll)

通过:@ w-ll(https://*.com/users/146637/w-ll)

Thanks to @DanielProtopopov for pointing it out

感谢@DanielProtopopov指出它