I'm running into some small problems, I have this javascript, to update the VLC webplugin's stream, now I really want to insert some data into my database, to log how many are watching.
Here is my javascript code -
function changeVideo(filename) {
var vlc = document.getElementById("tv");
var options = [":http-user-agent=Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25"];
var URL = filename;
var AddVid = vlc.playlist.add(URL, "", options);
vlc.playlist.playItem(AddVid);
}
Here is my bottom link to activate the function
<a href="javascript:void();" onclick="javascript:changeVideo('<?=$row["link"] ?>');"><img src="./70x/<?=$row["image"] ?>" alt="<?=$row["name"] ?>" style="width:70px;height:auto;"></a></a>
How do I get the name and the timestamp into the database? :-/