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();
African Affairs analyst, Victor Okhai, has said that the ousted Gabon President, Ali Bongo, through his civilian dictatorship, “has bought all the ingredients for a coup which has been served to him.”
Okhai said this in an interview with ARISE NEWS on Wednesday while reacting to the video of the Gabonese president pleading for his “friends to make noise” about the situation.
“It is things like this that provide ingredients for cooking coups and he has bought all the ingredients for a coup and it was served to him.
“Ordinarily, the people would have had enough. Ordinarily, Gabon is one of the countries with a more stable democracy but when a dictator insists on it must always be his way or the highway, this is what you see. The last election that was concluded a few days ago was the last straw.
“First of all, foreign observers were not allowed in, foreign journalists weren’t allowed in, the internet was shut down, for what? just so you can have your way over people and against their will. That is what happens to civilian dictators who enforce their will against the will of the people.
“Coup plotters derive their oxygen from the heartbeat of the people. It depends on the pulse of the people. this is the third coup in Gabon and the one thing that has been consistent is the French imposing their will on the people and that’s not democracy,” he said.
Okhai also said the president’s plea for intervention is close to fruitless as he has disabled any avenue immediate help would have come through.
“So far, you can see the people are very clearly happy about it. He is asking people to make noise. He has shut down the noisemakers. he has taken the internet from them, those who should make noise for him, he has shut their mouths. So, there is literally no voice for him.
“There is something I suspect that may happen. France may begin to do preemptive coups now in some of its territories. Our eyes are on some of them. they will now put their own puppets there and I think the people should be very smart and alert because these people are desperate,” he said
He also expressed disappointment at the silence of the African Union in the ongoing development. He said they do not have any credibility.
“By now, the African Union should have weighed in on some of these things that are happening but they are all now a bunch of compromised leaders. Many of them are puppets and so they take their dictation from somewhere other than Africa and because of that they can’t even talk. It they don’t even have credibility anymore. “ he said.
Chioma Kalu
The post Victor Okhai: Ali Bongo Brought Gabon Coup On Himself Through His Dictatorship appeared first on Arise News.