Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    XP7
    XP7 is offline
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Member #
    32582
    I need help with a small project that I am doing for a friend. He has a company that does staffing for healthcare workers and when they sign up with him, they have to watch 4 seperate training videos. What I need help with is a script of some sort that will pop-up a sign in box of some sort "AFTER EACH VIDEO IS FINISHED" so we can log a record of that person watching each video. How can I accomplish this with an open source (free) PHP script ? :help:

  2.  

  3. #2
    Senior Member Ganners's Avatar
    Join Date
    Feb 2011
    Location
    United Kingdom
    Posts
    415
    Member #
    27007
    Liked
    92 times
    Well, not too sure you'll find a script for this, it may exist but not sure what you'd search for.

    So there are a few things which come to mind
    - A video player with a finished event trigger (e.g. http://videojs.com/)
    - Some AJAX will get called on that trigger and add a database record to recognise that video has been watched
    - Go to or load the next video (AJAX would be cool)

    So you'll want some AJAX, I guess PHP as you're posting in this forum and some MySQL. You'll want to create a model in PHP with methods such as getNextVideoURL(), setVideoWatched($video_id). You could optionally use cookies and bypass the need for a database if you don't care about those people who might edit their cookies to bypass the videos, and those with cookies turned off.

    Storing them in MySQL will allow you to know and have 'logs' of those who have visited. It is the preferred route IMO.
    Mark Gannaway Software Developer

    Recent Experiments
    - Backpropogation Neural Network language solving (http://ann.ganners.co.uk/)
    - Animated image to ASCII (http://google.ganners.co.uk/)
    - 3D Paper Characters (http://cybergame.ganners.co.uk/)
    - Anagram solving (http://roflol.co.uk/)

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,716
    Member #
    5580
    Liked
    718 times
    What are the filetypes of the videos?


  5. #4
    XP7
    XP7 is offline
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Member #
    32582
    Quote Originally Posted by mlseim, post: 240544
    What are the filetypes of the videos?
    They are going to be flash videos, .FLV

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,716
    Member #
    5580
    Liked
    718 times
    Does it have to work with iPad or iPhone? Flash won't.


  7. #6
    XP7
    XP7 is offline
    Junior Member
    Join Date
    Aug 2012
    Posts
    4
    Member #
    32582
    Quote Originally Posted by mlseim, post: 240573
    Does it have to work with iPad or iPhone? Flash won't.
    No, just for PC.

  8. #7
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,716
    Member #
    5580
    Liked
    718 times
    You must have some sort of MySQL database that used used for storing
    user information? The users viewing the videos must log in?

    Somewhere in that database table you would keep track of which videos
    the user has seen. FlowPlayer is a nice Flash video system ... lots of options.
    I'm not yet sure about FlowPlayer knowing that the entire video was watched
    in full completion, but that's something you would have to find out about.

    Knowing if the user watched it or just loaded it and "quit" ... that's going to
    be the difficult thing to do.

    If you look around in the FlowPlayer forums, you'll find some posts about
    making sure the user has watched "at least" a minimum amount of time:
    http://flowplayer.org/forum/3/63195



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:49 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com