function getCookie(cookieName) {
let cookie = {};
document.cookie.split(‘;’).forEach(function (el) {
let [key, value] = el.split(‘=’);
cookie[key.trim()] = value;
})
return cookie[cookieName];
}
var playing = false;
var lastPopup = 0;
function showPopup(time) {
let videoElement = document.querySelector(‘.veri-video-player’).querySelector(‘video’);
let videoId = videoElement.getAttribute(‘data-video-id’);
let updateUrl = videoElement.getAttribute(‘data-api-url’);
console.log(‘Sending request with time: ‘ + time + ‘ video id: ‘ + videoId)
let watchTimeUrl = updateUrl + ‘/videos/update_watchtime’;
fetch(watchTimeUrl, {
method: ‘POST’,
cache: “no-cache”,
mode: “cors”,
headers: {
“Content-Type”: “application/json”,
},
body: JSON.stringify({
video_id: videoId
})
}).then(function (res) {
return res.json()
})
}
function checkPopup(time) {
// Number 5 is the interval for every update, Please don’t change it
// In case you have to change it please update it on the API as well to get accurate data.
if (playing && time – lastPopup >= 5) {
showPopup(time);
lastPopup = time;
}
}
videos = document.getElementsByClassName(‘veri-video-player’);
lastIndex = videos.length;
video = videos[lastIndex – 1];
license = video.getAttribute(‘data-license’);
src = video.getAttribute(‘data-url’);
player = videojs(video)
player.on(‘play’, function () {
playing = true;
});
player.on(‘pause’, function () {
playing = false;
});
player.on(‘ended’, function () {
lastPopup = 0;
});
video.onloadedmetadata = function () {
console.log(this.duration);//this refers to myVideo
};
player.on(‘timeupdate’, function () {
// Get the current time and duration of the video
var currentTime = player.currentTime();
var duration = player.duration();
// checkPopup(currentTime);
// console.log(currentTime)
// console.log(duration);
});
player.eme();
player.src({
src: src,
type: license ? ‘application/dash+xml’ : ”,
keySystems: {
‘com.widevine.alpha’: {
url: “https://0ffcee92.drm-widevine-licensing.axprod.net/AcquireLicense”,
licenseHeaders: {
“x-axdrm-message”: license
}
}
}
});
var playPromise = player.play();
Edo State Deputy Governor, Philip Shaibu, has sought forgiveness from Governor Godwin Obaseki for any unintentional mistakes he may have committed.
Shaibu who made the plea while speaking to the media on Friday said the plea became necessary to ensure that the present administration finishes well in the state.
The deputy governor stated this while speaking after his investiture as the Grand Patron of the Catholic Men Organisation of Nigeria of the Catholic Archdioceses of Benin.
He said, “I have always said that I am a loyal servant and nothing has changed. I took a vow to support my governor and as you can see the Catholic people are here.
“Everything about me is that if I have a vow with God, there is nothing that can change it. I can only wish that the relationship that we have before, I prayed and know that in the next few weeks it will come back.
“I am missing my governor and I prayed that God will touch my governor’s and all our hearts, and even those that are try to be in between us, God would touch their hearts to know that I mean well.
“If there is any mistake I have made as human, it is just human and not act of wickedness because I am not wicked and I have a clean heart.
“I used this medium to appeal to Mr. governor that if there is any mistake I have made or if there anything that I have done that I don’t know of, he should please forgive me so that we can develop our state together,” said the deputy governor.
Shaibu said the administration had just one year to go, and that they had been the envy of the entire country because they see their relationship as impossible.
He added, “Mr. governor if there is anything you feel I have done please I am sorry, and I need us to work together to finish well and strong because that is my prayer for you,” he added.
Shaibu said he had obeyed the governor’s directive to relocate to his new office, adding that he would gladly carry out any responsibility given to him by his principal.
Shaibu expressed gratitude to the CMO for the honour, saying, “l live my life in God, everything about me is God. When you remember that the life you have does not belong to you, you have no reason not to serve God,”.
Earlier, the CMO President of the Archdiocese of Benin, Barr. Austin Odigie said the decision to invest Shaibu was as a result of his commitment to the of God in the church activities.
“We have seen your commitment to all activities in the church. You have brought yourself low to the level of all of us in the church.
“You are the only deputy governor who serve mass during Father’s Day celebration. No other deputy governor have been captured serving mass. The Archdiocese of Benin, Archbishop Augustine Akubeze will personally invest you on September 24 during the first mass,” he said
The post Forgive Me, I’m Missing You, Edo Deputy Shaibu Begs Governor Obaseki appeared first on Arise News.