we are trying to configure Wowza flowplayer to play DVR streams. Under default settings, the slider duration starts from “00:00 to the corresponding duration”, lets says if DVR video is 10 mins long, the slider would show “00:00/10:00”.
We want to change this to local time so if current time is 9:00 AM, then if I go to the start of the slider, it should show “09:00” and change accordingly as I try to seek forward in the slider.
Also, is it possible to divide the slider into 1 minute scale? so it should have marking after every 1 minute on the slider so that users can seek easily following the local time and view a specific incident.
I could not find any configuration for this in the guide for Wowza flowplayer configuration. Please let me know how to achieve this.
To customize the behavior of Wowza Flowplayer’s DVR stream slider, you can modify the player configuration. Here’s how you can achieve the desired changes:
Display Local Time : To show the slider duration in local time, you would need to modify the time format of the slider labels. You can use JavaScript to achieve this. In your player configuration, find the part where the slider labels are defined. Then, use JavaScript to convert the time from UTC to the local time zone before displaying it. Here’s a basic example:
Divide Slider into 1-Minute Scale : Similarly, you can use JavaScript to modify the slider to show markings at every 1-minute interval. You can achieve this by customizing the appearance of the slider using CSS and JavaScript. Here’s a basic example:
javascriptCopy code
timeSlider: {
labels: function (api) {
return api.secondsToTime(api.video.duration);
},
markers: function (api) {
var markers = [];
var interval = 60; // 1 minute in seconds
for (var i = 0; i <= api.video.duration; i += interval) {
markers.push({ time: i, label: api.secondsToTime(i) });
}
return markers;
}
}
Please note that these examples are meant to provide you with a starting point. You may need to adjust the code and integrate it properly into your Wowza Flowplayer configuration based on your specific requirements.
@a19e4fbfd0ec3abe1e7d , can you please elaborate on how your method could be implemented with the code below, I am not able to integrate your code to divide the timeline and create markers at every minute.
Modifying the Wowza Flowplayer’s slider to display local time and divide it into 1-minute increments would likely require customizing the player’s code. Check the Wowza documentation or reach out to their support/community for guidance on implementing these specific features. It may involve JavaScript or custom CSS to achieve your desired functionality. Good luck!