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();
President Bola Tinubu has declared that federal and state governments have the joint responsibility of ensuring peace and stability reign in the Nigerian nation.
Speaking Tuesday at a meeting with the Nigeria Governors’ Forum (NGF) at his Lagos residence, the President said “Nigeria needs peace and stability to move forward. Nigeria belongs to all of us, and we have to take care of it”.
He emphasized the need for joint responsibility and closer collaboration between the federal and sub-national governments to foster rapid infrastructural development in every part of the nation.
“I want us to discard federal, state, or rural road classifications. We must regard development as a joint responsibility. Let us prioritize our children. The school feeding programme must return quickly, beginning from the local government to the state and federal governments.
“We must be ready to protect our children and prepare them for the future,” the President stated.
Addressing the governors, President Tinubu, while reiterating his condemnation of the latest killings in Plateau State issued a stern directive to security agencies to halt the carnage in Plateau State and intensify the pursuit of those responsible for the recent tragic events in Bokkos and Barkin-Ladi Local Government Areas.
Condoling with the victims, the President emphasized the sanctity of human life and called for a paradigm shift among those with contrary beliefs, cautioning them about the inevitable consequences of their actions.
President Tinubu acknowledged the presence of Governor Siminalayi Fubara of Rivers State at the meeting, commending him for his efforts to peacefully resolve the political challenges in the state.
He said: “I thank you for your statesmanship. I listened to your broadcast and your emphasis on peace. It is only with peace that effective governance can thrive, and governance has commenced in earnest under my watch”.
On the 2024 Budget proposals before the National Assembly, the President informed the governors that he had a review meeting earlier in the day on certain elements in the Appropriation Bill, with the Minister of Finance and Coordinating Minister of the Economy, Mr. Wale Edun, and the Minister of Budget and Economic Planning, Senator Atiku Bagudu.
Earlier in his speech, Chairman of the Nigeria Governors’ Forum (NGF) and Kwara State Governor, Abdulrahman Abdulrazaq, expressed solidarity with the government and the people of Plateau State.
“May God be with the souls of the departed and bring peace to Plateau State. The Governor of Plateau State, we are with you; stay strong,” the NGF Chairman said.
Abdulrazaq reaffirmed state governments’ support for the bold decisions and reforms initiated by President Tinubu’s administration.
“These are challenging times. It is not a walk in the park. Removing fuel subsidies had a great structural effect on the economy of the states. But we are confident that we will overcome these challenges and bounce back better,” he said.
Deji Elumoye in Abuja
The post Tinubu To Governors: We Have Joint Responsibility To Ensure Nigeria’s Peace And Stability appeared first on Arise News.