Video streaming via VB app

Posted on 2007-08-01
Last Modified: 2013-12-07
One of my clients has the following scenario:

He wants to set up his classes on video so that the students can view them online (not live, just the recorded video and it may be just as a user on his network rather than on an actual web site).  I have a VB app that will allow you to watch videos on Windows Media Player.  He also wants to restrict the usage to one viewing per student, which can easily be controlled by my app.  Students will get a password when they sign up for the course and they then have 6 months to watch the videos.

How do we make this work with a remote workstation where the student dials in, logs into the system and then watches the video?  My biggest concern is that the video is going to a remote desktop that is essentially a dumb terminal.  What do we need to require of the users ion order to make this work?
Question by:gburditt
    LVL 10

    Accepted Solution

    the very first thing that came to my mind is the Licensing mechanism that come with WMV format files.. I always find them nasty as they track how many times something has been viewed, and can also stop play back. a search on DRM would show you how to go about that..

    But the down side to that is it does cost you money, i think its like a monthly license fee or something.

    Now, without making your own Muxers and decoders, there is not alot of things you can do to stop it.. I mean if you are just streaming video, someone could easily just save that right off, and without things like DRM, you can play that back anytime you want.

    This should explain to you in a more structured way:
    LVL 10

    Assisted Solution

    Now one thing I can think of, is downloading the entire file, then ask for a exclusive File Lock on that file so nothing else will be able to access it at all apart from your own process, then play it back within your application (with a embeded player, etc). Then once its completed playing, delete the file, remove the lock.

    Now I do not know how a File Lock is done on Visual Basic, but in C++ you can create one by doing:

    fh=open("FILENAME", O_WRONLY | O_CREAT | O_EXCL);

    //You need the old <io.h> header
    LVL 11

    Assisted Solution

    Well, technically speaking a very skilled student can get the video no matter what, for later viewing (including simply looking at cache files, etc).

    But to prevent the 'average' user, its an easy solution. Use a webbrowser control to navigate to a 'hidden' website/webpage on the guys website, and on the guys website end, simply track how many times the video has been downloaded. If it has been downloaded more than once, simply print a message that says 'sorry bud, you've already seen this video!'. And of course if you want, you can clean up the cache yourself once the software exits, etc.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This video will give a brief orientation and organization of Logic Pro X, and how to access different work spaces quickly with keyboard shortcuts.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now