How can I make my users know my new updates (Feedback)? [closed]

0

I have a page where I will upload podcast, Videos and Articles, I would like to know how to do that when I upload or better, share my videos on the website at the beginning of it, have the new updates.

They are shared through youtube, now when I share a new video with my users, I want that new update to appear as a warning at the start of my web system so that they would notice the news without having to look for them .

Here is my home tab, the pink rectangle is where notifications should appear

I am not using any particular framework and the language in which I am developing the web system is php, javascript and html5 and a bit of jquery, at the moment I have not made code since I did not know how to start so I did not errors have come out, is a question for the initiation of my functional code

    
asked by David 25.08.2016 в 18:42
source

1 answer

1

I recommend using Socket.IO link . It's very simple, this example connects to twitter and issues an event every time it finds a new tweet from a user. It sounds interesting to implement it with the Youtube API.

var io = require('socket.io')(80);
var cfg = require('./config.json');
var tw = require('node-tweet-stream')(cfg);
tw.track('socket.io');
tw.track('javascript');
tw.on('tweet', function(tweet){
  io.emit('tweet', tweet);
});

Greetings.

    
answered by 25.08.2016 в 18:49