var playing = false;
var lastPopup = 0;
function getCookie(cookieName) {
let cookie = {};
document.cookie.split(‘;’).forEach(function (el) {
let [key, value] = el.split(‘=’);
cookie[key.trim()] = value;
})
return cookie[cookieName];
}
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();
First Lady Oluremi Tinubu, has called on Nigerians especially the clergy to pray for the country, declaring that 2024 will be a year of peace.
Mrs Tinubu, who spoke Tuesday at the 2023 Service of Nine Lessons and Carols with the theme: “Immanuel, Our Hope of Glory” at the State House, Abuja said “I want to appreciate you, we can only covet your prayers. I believe the best is now in Nigeria, we shall experience and see it.”
According to her: “2024 is the year of peace, Nigeria will take her place in the comity of nations”.
In his remarks on the occasion, Deputy Speaker of the House of Representatives, Hon Benjamin Kalu, said with the elections over, Nigerians from all political divides must reconcile for the nation’s progress.
His words: “Peace is all the season represents. The Prince of Peace was given birth to. So, those who are angry, agitated and interested in violence, should drop it.
“Let us forgive one another, Let us get reconciled to our families, communities, states and the nation.
“We are believing that 2024 will bring what we have never seen before, the prosperity that will amaze us.“
Also speaking, Ooni of Ife, Oba Adeyeye Ogunwusi Ojaja 11, said though the times seem tough economically, Nigerians can weather the storm through the resilience they are known for.
According to the royal father: “My message to Nigerians is that we should continue to look up to God. Yes, things are tight, we all know. But there would be succour. That’s our prayers. All the traditional rulers are joining forces towards this.
“In this festive season, we continue to pray to God for things to be better. We’ve been very resilient, and the resilience will continue to uphold us.
“When things get better, we will have more time to enjoy the fruit of our labour”.
On his part, President of the Christian Association of Nigeria, (CAN), Dr Daniel Okoh, said this Christmas was special in Nigeria because it is the first after the elections that produced President Bola Tinubu and affirmed by the Supreme Court.
He said Nigerians are looking forward to this year’s Christmas with renewed hope, believing that things will be better saying.
“I pray that things will indeed be better.”
Okoh stressed that the elections were now over and that there can only be one president at a time abd therefore advised Nigerians to support the current administration.
He urged all Christians to be champions of reconciliation and not crisis and division, saying “We must love our enemies…This is not the time to pull others down but to build…let us rally round our political leaders to ensure speed of delivery.”
Former Head of State, General Yakubu Gowon; former President Goodluck Jonathan, their spouses, Victoria Gowon and Patience Jonathan; President of the Senate, Senator Godswill Akpabio and his wife, Ekaette Akpabio, were among the dignitaries who joined the First Lady at the service.
Other are the Secretary to the Government of the Federation, Senator George Akume; Head of Service of the Civil Service of the Federation, Dr (Mrs) Folashade Yemi-Esan; members of the Federal Executive Council, members of the diplomatic corps and traditional rulers, among others.
Deji Elumoye in Abuja
The post In 2024, Nigeria Will Take Her Place in the Comity of Nations, Assures First Lady Remi Tinubu appeared first on Arise News.