delickate Posted February 7, 2012 Share Posted February 7, 2012 Hi, I want to restrict my registered user to see video only once per day... Can anyone guide me how can i do this with php??? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/256590-video-restriction/ Share on other sites More sharing options...
Deoctor Posted February 7, 2012 Share Posted February 7, 2012 you can use the database to store the number of times a user visited the particular video page and then restrict the same while he is trying to visit the same page again. But there is one flaw in this. if the user refreshes the page by any reason due to the slow internet then he will be said as that he already saw that video. I guess someone else would give u a better idea than this, by the time i guess u can start with this Quote Link to comment https://forums.phpfreaks.com/topic/256590-video-restriction/#findComment-1315391 Share on other sites More sharing options...
delickate Posted February 7, 2012 Author Share Posted February 7, 2012 Thanks for the reply, Actually there is no problem to restrict the video. problem is with getting event of play.... just tell me how to get event of play button?? if i would have that event i can restrict it.... so pleas guide accordingly... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/256590-video-restriction/#findComment-1315394 Share on other sites More sharing options...
Deoctor Posted February 7, 2012 Share Posted February 7, 2012 I have read a document long time ago regarding the play and pause but that have been used to for the Html5. guess these would be of help http://www.dbscripts.net/tutorials/html5-video/ Quote Link to comment https://forums.phpfreaks.com/topic/256590-video-restriction/#findComment-1315396 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.