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 President Bola Tinubu has declared that ongoing reforms, starting with removal of fuel subsidy and streamlining of exchange rate, will be sustained for a more competitive economy that attracts Foreign Direct Investment (FDI) into the country.
He has, therefore urged foreign investors to take advantage of opportunities in Nigeria.
Speaking Thursday in Paris, France while receiving President and Chairman of the Board of Directors of African Export-Import Bank (Afrexim), Prof. Benedict Oramah and President of European Bank for Reconstruction and Development (EBRD), Odile Renaud–Basso, in separate meetings, on the sidelines of the Summit for New Global Financing Pact, the President said:
“We are ready for business, prepared to welcome investments”.
The President, according to a release issued by his Special Adviser on Special Duties, Communications and Strategy, Mr Dele Alake,
assured the delegation of AfreximBank Executives led by Dr Oramah that the Federal Government will continue to stimulate the economy with policies that support investments in areas of Nigeria’s competitive advantage, particularly agriculture.
“We need reforms for national survival,’’ he added, noting that it would take boldness and courage to reposition the economy, calling for more collaboration to solidify the economy.
“We must stimulate recovery for the growth and prosperity of our people, which will not be far away. Nigeria is ready for global business and our reform is total.
“Nigeria is blessed with human and material resources,’’ President Tinubu told the delegation, who had earlier listed areas of interventions to buoy the economy, like infrastructure, health, energy and agriculture.
Earlier, the President of AfreximBank commended President Tinubu for the bold steps in removing the fuel subsidy and unification of the exchange rate, assuring the Nigerian leader of the full support of the financial and development institution on the ongoing reforms.
Oramah said the bank was already building the first African Specialist Hospital in Abuja, and Energy Bank, pledging to inject more money into the economy to further build confidence of investors.
Also speaking in separate meeting with the EBRD, the President said: “We are challenged in terms of reforms, and we have taken the largest elephant out of the room with removal of fuel subsidy, and multiple exchange rates are equally gone. We are determined to open up the economy for business. Consider us a stakeholder in the Bank.’’
He told the EBRD boss that Nigeria’s economy was too large and potent to be ignored, adding, “ignoring Nigeria will be a peril to the universe.’’
On his part, Renaud-Basso said it would be a mistake for the development bank not to invest in Nigeria, after considering six potential economies for investment.
She explained that focus would be on the private sector, especially Small and Medium Scale Enterprises (SMEs).
The post Tinubu: We’re Prepared For Business, Ready To Welcome Investors To Nigeria appeared first on Arise News.