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();
Professor of Energy and Electricity law, Yemi Oke has advised the federal government to target direct subsidies towards the consumers and not on production.
In an interview with ARISE NEWS on Wednesday, Oke said by shifting the focus away from production subsidies, wastage and excessive production costs could be mitigated, ultimately fostering efficiency and sustainability in the power sector.
“Coming now specifically to the power sector, Nigerians were not even aware till recently when some of us started amplifying that there is huge subsidy in the power sector. But if the government can’t continue to subsidize darkness, if you’re giving subsidies for the purpose of electricity, then it’s supposed to be for the fact that Nigerians are having power.
“But that is not the case with the power sector. The government needs to restructure the regime in the power sector. It is going to kill the Nigerian economy. Government shouldn’t continue to subsidize production despite the challenges. If there is going to be a direct subsidy, it should be to consumers. you can’t subsidize production because it is going to incentivize wastages and humongous production cost.”
Criticizing the practice of subsidizing electricity without ensuring tangible benefits for consumers, the energy expert called for a restructuring of subsidy mechanisms to align with economic realities.
“Power sector is one area we have to look at ourselves and tell the bitter truth. I have always advocated and still stand by my position that the power sector is one sector we need to get right for things to start to crystalize in the direction of progress and economic prosperity. We have made a number of mistakes in the power sector and we need to start correcting the mistakes.
“The current structure of the power sector is not sustainable and as an energy expert, I feel we have too many subsidies in the energy sector, which include petroleum, gas and power sector. Once we have humongous subsidies in the energy sector generally, would that be sustainable? The answer is No.
Furthermore, Oke criticized the Power Sector Reform Act of 2005, labeling it as flawed and ineffective. He said despite provisions for the PCAF, aimed at supporting low-income earners, the fund has never been operationalized, leaving a critical gap in providing relief to vulnerable consumers.
“We have always had a mechanism in the law which was never crystalized. I objected to that. The power sector reform act of 2005 was a funny law that I have always been criticizing since it was put in place. A lot of Nigerians are not aware that we have a power consumer assistance fund (PCAF), even in the old law.
“PCAF was never operationalized. It was a structured pool of funds meant to subsidize low-income earners who would not be able to afford hikes in electricity tariffs. Government should put in place appropriate structures that would crystallize PCAF. That would reduce the burden on Nigerian”
The post Yemi Oke: Nigeria Should Target Electricity Subsidies Towards Consumers, Not Production appeared first on Arise News.