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();
Nigeria has officially reacted to the reported unconstitutional change of government in neighbouring Republic of Gabon.
Soldiers were reported on Wednesday morning to have staged a coup in Libreville, Gabonese capital and toppled the government of President Ali Bongo in the Central African nation.
Addressing newsmen Wednesday on the issue at the State House, Abuja, presidential spokesperson, Ajuri Ngelale, disclosed that President Bola Tinubu has expressed deep concern over the coup d’etat in Gabon.
He said the President has firm belief in the fact that power lies in the hands of African people and not in the barrel of a loaded gun.
According to him, President Tinubu is in constant touch with fellow African leaders on how best to address the recurring autocratic tendencies blowing across the African continent.
Ngelale’s words: “President Bola Tinubu is watching developments in Gabon very closely with deep concern for the country’s social political stability and at the seeming autocratic contagion apparently spreading across different regions of our beloved continent.
“The President, as a man who has made significant personal sacrifices in his own life in the course of advancing and defending democracy, is of the unwavering belief that power belongs in the hands of Africa’s great people and not in the barrel of a loaded gun.
“The President affirms that the rule of law and a faithful recourse to the constitutional resolutions and instruments of electoral dispute resolution must not at any time be allowed to perish from our great continent.
“To this end, the President is working very closely and continuing to communicate with other Heads of State in the African Union and beyond towards a comprehensive consensus on the next steps forwards with respect to how the crisis in Gabon will play out and how the continent will respond to the contagion of autocracy we are seeing spread across our continent”.
The presidential spokesperson also disclosed that President Tinubu on Wednesday afternoon had a fruitful telephone conversation with the Canadian Prime Minister Justine Trudeau over the coup in Gabon and last month’s unconstitutional change of government in Niger Republic.
Ngelale sid the two leaders agreed to promote and protect constitutional orders in the African continent.
His words: “The President has had substantive extended discussions with the Canadian Prime minister Justine Trudseau where issues related to the crisis in Niger republic and the unfolding situation in Gabon were discussed.
“The two Heads of State mutually agreed that the promotion and protection of constitutional democratic governance on the continent remains a paranoid priority and that the people of Africa living is the diaspora around the world making a huge impact to the social political landscapes of countries around the world and the economies of countries around the world continue to urge on the global community to advance the course of democracy on the continent for the sake of the economic prosperity of all Africans.
“So, it is of frontline importance to understand that President Bola Tinubu would continue to engage with Heads of State not just only in the African Union but also around world and those communications and engagements are on-going”
Deji Elumoye in Abuja
The post Tinubu Denounces Coup In Gabon, Speaks with Canadian PM Trudeau on Unfolding Situation appeared first on Arise News.