Connect with us

Click here to join NNU for free and make money while reading news and getting updates daily.

Africa

It is Inadequate for Lagos State to Build 16km of Rail in 16 Years – Rhodes-Vivour

Published

on


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()
})
}

Advertisement

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

Advertisement

};

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();

Advertisement

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();

There are a lot of financial inconsistencies between the Chinese contractors and the Lagos State balance sheet. The opaque nature of the APC administration in Lagos allows corruption to thrive Gbadebo Rhodes-Vivour, 2023 Labour Party Guber Candidate

The post It is Inadequate for Lagos State to Build 16km of Rail in 16 Years – Rhodes-Vivour appeared first on Arise News.

Advertisement



Source link: Arise News/