Home Revolution Fullwidth › Forums › Digitalsignagepress Problems and Help › Playlist Heartbeat
It appears that the heartbeat for a a playing playlist is about 10 seconds. Can this heartbeat be adjusted? I would like the heartbeat for playing playlists to be 1 minute.
I believe that within JS > ds_page.js there is an adjustment that can be made to increase/decrease the amount of time in-between the display page’s heartbeat. Within the file you should see “…load|10000|setInterval…” Change 10000 to another time in milliseconds (like “300000” for 5 minutes) to change the heartbeat.
If modifying the plugin code isn’t for you want this workaround works for changing the heartbeat (although it may not the best):
// Workaround for Playlist Heartbeat
jQuery(window).load(function () {
// Clear all heartbeats
id = window.setInterval(() => {}, 0);
while (id) {
window.clearInterval(id);
id–;
}
// Redefine ds_update_page heartbeat
// 300000 == 5 minutes
setInterval(ds_update_page,300000);
});
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.