diff --git a/Modules/MediaCast/Video/js/video_widget.js b/Modules/MediaCast/Video/js/video_widget.js index c5743e9acdd7..cc8595e7e3a5 100644 --- a/Modules/MediaCast/Video/js/video_widget.js +++ b/Modules/MediaCast/Video/js/video_widget.js @@ -338,11 +338,14 @@ il.VideoPlaylist = il.VideoPlaylist || {}; perc = 100 / duration * current_time; if (t.playlist[list_wrapper].completed_cb !== '') { if (perc > t.playlist[list_wrapper].percentage) { - t.playlist[list_wrapper].items[i].completed = true; - $.ajax({ - type: 'GET', - url: `${t.playlist[list_wrapper].completed_cb}&mob_id=${v.id}`, - }); + if (!t.playlist[list_wrapper].items[i].completed) { + t.playlist[list_wrapper].items[i].completed = true; + console.log('sending completed cb'); + $.ajax({ + type: 'GET', + url: `${t.playlist[list_wrapper].completed_cb}&mob_id=${v.id}`, + }); + } } } }