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();
The Commissioner for communication and orientation for Edo Atate, Chris Osa Nehikhare, says the interruption by deputy governor Phillip Shaibu and his media team at a colloquium to mark the 60th anniversary of the Midwest Referendum, was a deliberate action orchestrated by to embarrass Governor Obaseki.
Edo state government has disbanded the media crew attached to the office of the deputy governor, with a directive for him to henceforth request the ministry of communication for media coverage of the activities of his office.
Nehikhare, in an interview with ARISE NEWS on Tuesday, said more investigation is still ongoing on the situation.
“In retrospect, we now know that the interruption was planned and an attempt to disrupt and embarrass the governor. But then, the only person embarrassed now is the deputy governor because everyone wants to know why the deputy governor has to come to the event with his own media crew, different from the team of the state government and different from the team that has been put there even without being accredited.
“We know the deputy Governor is ambitious and wants to be the governor. Good luck to him. No one is stopping him. But you do not bring your house down to feed your ego.
“We are still investigating the disbanded crew because we were amazed that they identified as the deputy governor’s team. What we have always had is a media team attached to the government house which is assigned to the governor or deputy, depending on who has an official engagement.
“Edo State government is not happy with the turn of events; However, we haven’t done anything to reduce the office of the deputy governor. We have worked with him and we will continue to give him all due respect which is of his demands.
“The Edo state government has done so much for the people of Edo in all the areas and that is the emphasis and how we want people to look at Edo state, not with these unnecessary distractions which were orchestrated to divert attention from the good works this government and the previous ones have done.” he said.
In the past few weeks, Obaseki and Shaibu have been at loggerheads over issues pertaining to the alleged impeachment plot against the deputy governor.
In July, Shaibu approached a federal high court in Abuja with a suit to prevent the plot.
However, Obaseki and Blessing Agbebaku, speaker of the Edo house of assembly, denied the alleged impeachment plot.
On Saturday, Shaibu described Obaseki as his “elder brother”, while pledging his loyalty to the governor.
Chioma Kalu
The post Edo Government: Shaibu Planned To Embarass Obaseki At Colloquium appeared first on Arise News.